@smoothnlp/smoothnlp-api
Version:
SmoothNLP data sharing SDK.
73 lines (69 loc) • 2.51 kB
JavaScript
/**
* News
* 资讯信息查询接口 * 默认域名: service-nl4at3t9-1259459016.ap-shanghai.apigateway.myqcloud.com/release * 自定义域名: data.service.news.smoothnlp.com/release
*
* OpenAPI spec version: 2019-07-25 16:57:42
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.0-SNAPSHOT
*
* Do not edit the class manually.
*
*/
(function(factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient', 'api/NewsApi'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('./ApiClient'), require('./api/NewsApi'));
}
}(function(ApiClient, NewsApi) {
'use strict';
/**
* _service_nl4at3t9_1259459016_ap_shanghai_apigateway_myqcloud_comrelease_data_service_news_smoothnlp_comrelease.<br>
* The <code>index</code> module provides access to constructors for all the classes which comprise the public API.
* <p>
* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:
* <pre>
* var News = require('index'); // See note below*.
* var xxxSvc = new News.XxxApi(); // Allocate the API class we're going to use.
* var yyyModel = new News.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue';
* ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
* ...
* </pre>
* <em>*NOTE: For a top-level AMD script, use require(['index'], function(){...})
* and put the application logic within the callback function.</em>
* </p>
* <p>
* A non-AMD browser application (discouraged) might do something like this:
* <pre>
* var xxxSvc = new News.XxxApi(); // Allocate the API class we're going to use.
* var yyy = new News.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue';
* ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
* ...
* </pre>
* </p>
* @module index
* @version 2019-07-25 16:57:42
*/
var exports = {
/**
* The ApiClient constructor.
* @property {module:ApiClient}
*/
ApiClient: ApiClient,
/**
* The NewsApi service constructor.
* @property {module:api/NewsApi}
*/
NewsApi: NewsApi
};
return exports;
}));