1.0.0 • Published 7 years ago

default_1461130010263 v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
7 years ago

default_1461130010263

Default1461130010263 - JavaScript client for default_1461130010263 新闻API接口,包括多个频道的最新新闻(距各大网站发布的新闻时间不超过10分钟延迟),有国内焦点、国际焦点、军事焦点、财经焦点、互联网焦点、房产焦点、汽车焦点、体育焦点、娱乐焦点、游戏焦点等近50个新闻频道。 This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0
  • Package version: 1.0
  • Build date: 2016-11-22T16:48:03.324+08:00
  • Build package: class io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install default_1461130010263 --save

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Getting Started

Please follow the installation instruction and execute the following JS code:

var Default1461130010263 = require('default_1461130010263');

var api = new Default1461130010263.DefaultApi()

var appkey = "appkey_example"; // {String} 万象平台提供的appkey


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.channelNews(appkey, callback);

Documentation for API Endpoints

All URIs are relative to http://way.jd.com/showapi

ClassMethodHTTP requestDescription
Default1461130010263.DefaultApichannelNewsGET /channel_news新闻频道列表
Default1461130010263.DefaultApisearchNewsGET /search_news频道或关键词查询新闻

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

1.0.0

7 years ago