worldnewsapi
Advanced tools
Comparing version 1.0.11 to 1.1.1
@@ -8,11 +8,12 @@ "use strict"; | ||
var _ApiClient = _interopRequireDefault(require("../ApiClient")); | ||
var _ExtractLinksResponse = _interopRequireDefault(require("../model/ExtractLinksResponse")); | ||
var _ExtractNewsResponse = _interopRequireDefault(require("../model/ExtractNewsResponse")); | ||
var _GeoCoordinatesResponse = _interopRequireDefault(require("../model/GeoCoordinatesResponse")); | ||
var _SearchNewsResponse = _interopRequireDefault(require("../model/SearchNewsResponse")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
var _ExtractNews200Response = _interopRequireDefault(require("../model/ExtractNews200Response")); | ||
var _ExtractNewsLinks200Response = _interopRequireDefault(require("../model/ExtractNewsLinks200Response")); | ||
var _GetGeoCoordinates200Response = _interopRequireDefault(require("../model/GetGeoCoordinates200Response")); | ||
var _SearchNews200Response = _interopRequireDefault(require("../model/SearchNews200Response")); | ||
var _TopNews200Response = _interopRequireDefault(require("../model/TopNews200Response")); | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } | ||
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } | ||
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } | ||
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } | ||
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } | ||
@@ -23,3 +24,3 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** | ||
* | ||
* The version of the OpenAPI document: 1.1 | ||
* The version of the OpenAPI document: 1.1.1 | ||
* Contact: mail@worldnewsapi.com | ||
@@ -35,3 +36,3 @@ * | ||
* @module api/NewsApi | ||
* @version 1.0.11 | ||
* @version 1.1.1 | ||
*/ | ||
@@ -55,3 +56,3 @@ var NewsApi = exports["default"] = /*#__PURE__*/function () { | ||
* @param {String} error Error message, if any. | ||
* @param {module:model/ExtractNewsResponse} data The data returned by the service call. | ||
* @param {module:model/ExtractNews200Response} data The data returned by the service call. | ||
* @param {String} response The complete HTTP response. | ||
@@ -62,7 +63,7 @@ */ | ||
* Extract News | ||
* Extract a news entry from a news site. | ||
* Extract a news article from a website to a well structure JSON object. The API will return the title, text, URL, image, publish date, author, language, source country, and sentiment of the news article. | ||
* @param {String} url The url of the news. | ||
* @param {Boolean} analyze Whether to analyze the news (extract entities etc.) | ||
* @param {module:api/NewsApi~extractNewsCallback} callback The callback function, accepting three arguments: error, data, response | ||
* data is of type: {@link module:model/ExtractNewsResponse} | ||
* data is of type: {@link module:model/ExtractNews200Response} | ||
*/ | ||
@@ -91,3 +92,3 @@ return _createClass(NewsApi, [{ | ||
var accepts = ['application/json']; | ||
var returnType = _ExtractNewsResponse["default"]; | ||
var returnType = _ExtractNews200Response["default"]; | ||
return this.apiClient.callApi('/extract-news', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); | ||
@@ -100,3 +101,3 @@ } | ||
* @param {String} error Error message, if any. | ||
* @param {module:model/ExtractLinksResponse} data The data returned by the service call. | ||
* @param {module:model/ExtractNewsLinks200Response} data The data returned by the service call. | ||
* @param {String} response The complete HTTP response. | ||
@@ -107,15 +108,11 @@ */ | ||
* Extract News Links | ||
* Extract a news links from a news website. | ||
* @param {String} url The url from which links should be extracted. | ||
* @param {String} apiKey Your API key. | ||
* @param {Object} opts Optional parameters | ||
* @param {String} [prefix] The prefix the news links must start with. | ||
* @param {Boolean} [subDomain] Whether to include links to news on sub-domains. | ||
* Extract news links from a news website. | ||
* @param {String} url The url of the news. | ||
* @param {Boolean} analyze Whether to analyze the news (extract entities etc.) | ||
* @param {module:api/NewsApi~extractNewsLinksCallback} callback The callback function, accepting three arguments: error, data, response | ||
* data is of type: {@link module:model/ExtractLinksResponse} | ||
* data is of type: {@link module:model/ExtractNewsLinks200Response} | ||
*/ | ||
}, { | ||
key: "extractNewsLinks", | ||
value: function extractNewsLinks(url, apiKey, opts, callback) { | ||
opts = opts || {}; | ||
value: function extractNewsLinks(url, analyze, callback) { | ||
var postBody = null; | ||
@@ -126,5 +123,5 @@ // verify the required parameter 'url' is set | ||
} | ||
// verify the required parameter 'apiKey' is set | ||
if (apiKey === undefined || apiKey === null) { | ||
throw new Error("Missing the required parameter 'apiKey' when calling extractNewsLinks"); | ||
// verify the required parameter 'analyze' is set | ||
if (analyze === undefined || analyze === null) { | ||
throw new Error("Missing the required parameter 'analyze' when calling extractNewsLinks"); | ||
} | ||
@@ -134,5 +131,3 @@ var pathParams = {}; | ||
'url': url, | ||
'prefix': opts['prefix'], | ||
'sub-domain': opts['subDomain'], | ||
'api-key': apiKey | ||
'analyze': analyze | ||
}; | ||
@@ -144,3 +139,3 @@ var headerParams = {}; | ||
var accepts = ['application/json']; | ||
var returnType = _ExtractLinksResponse["default"]; | ||
var returnType = _ExtractNewsLinks200Response["default"]; | ||
return this.apiClient.callApi('/extract-news-links', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); | ||
@@ -150,6 +145,6 @@ } | ||
/** | ||
* Callback function to receive the result of the geoCoordinates operation. | ||
* @callback module:api/NewsApi~geoCoordinatesCallback | ||
* Callback function to receive the result of the getGeoCoordinates operation. | ||
* @callback module:api/NewsApi~getGeoCoordinatesCallback | ||
* @param {String} error Error message, if any. | ||
* @param {module:model/GeoCoordinatesResponse} data The data returned by the service call. | ||
* @param {module:model/GetGeoCoordinates200Response} data The data returned by the service call. | ||
* @param {String} response The complete HTTP response. | ||
@@ -160,14 +155,14 @@ */ | ||
* Get Geo Coordinates | ||
* Get the geo coordinates for a location. The location can be an exact address but also just the name of a city or country. | ||
* @param {String} location The address or name of the location, e.g. Tokyo, Japan. | ||
* @param {module:api/NewsApi~geoCoordinatesCallback} callback The callback function, accepting three arguments: error, data, response | ||
* data is of type: {@link module:model/GeoCoordinatesResponse} | ||
* Retrieve the latitude and longitude of a location name. Given this information you can fill the location-filter parameter in the news search endpoint. | ||
* @param {String} location The address or name of the location. | ||
* @param {module:api/NewsApi~getGeoCoordinatesCallback} callback The callback function, accepting three arguments: error, data, response | ||
* data is of type: {@link module:model/GetGeoCoordinates200Response} | ||
*/ | ||
}, { | ||
key: "geoCoordinates", | ||
value: function geoCoordinates(location, callback) { | ||
key: "getGeoCoordinates", | ||
value: function getGeoCoordinates(location, callback) { | ||
var postBody = null; | ||
// verify the required parameter 'location' is set | ||
if (location === undefined || location === null) { | ||
throw new Error("Missing the required parameter 'location' when calling geoCoordinates"); | ||
throw new Error("Missing the required parameter 'location' when calling getGeoCoordinates"); | ||
} | ||
@@ -183,3 +178,3 @@ var pathParams = {}; | ||
var accepts = ['application/json']; | ||
var returnType = _GeoCoordinatesResponse["default"]; | ||
var returnType = _GetGeoCoordinates200Response["default"]; | ||
return this.apiClient.callApi('/geo-coordinates', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); | ||
@@ -198,7 +193,5 @@ } | ||
* News Website to RSS Feed | ||
* Turn a news website into an RSS feed. Any page of a news website can be turned into an RSS feed. Provide the URL to the page and the API will return an RSS feed with the latest news from that page. | ||
* @param {String} url The url from which links should be extracted. | ||
* @param {String} apiKey Your API key. | ||
* @param {Object} opts Optional parameters | ||
* @param {Boolean} [extractNews] Whether extract news and add information such as description, publish date, and image to each item. | ||
* Turn a news website into an RSS feed. Any page of a news website can be turned into an RSS feed. Provide the URL to the page and the API will return an RSS feed with the latest news from that page. | ||
* @param {String} url The url of the news. | ||
* @param {Boolean} analyze Whether to analyze the news (extract entities etc.) | ||
* @param {module:api/NewsApi~newsWebsiteToRSSFeedCallback} callback The callback function, accepting three arguments: error, data, response | ||
@@ -209,4 +202,3 @@ * data is of type: {@link Object} | ||
key: "newsWebsiteToRSSFeed", | ||
value: function newsWebsiteToRSSFeed(url, apiKey, opts, callback) { | ||
opts = opts || {}; | ||
value: function newsWebsiteToRSSFeed(url, analyze, callback) { | ||
var postBody = null; | ||
@@ -217,5 +209,5 @@ // verify the required parameter 'url' is set | ||
} | ||
// verify the required parameter 'apiKey' is set | ||
if (apiKey === undefined || apiKey === null) { | ||
throw new Error("Missing the required parameter 'apiKey' when calling newsWebsiteToRSSFeed"); | ||
// verify the required parameter 'analyze' is set | ||
if (analyze === undefined || analyze === null) { | ||
throw new Error("Missing the required parameter 'analyze' when calling newsWebsiteToRSSFeed"); | ||
} | ||
@@ -225,4 +217,3 @@ var pathParams = {}; | ||
'url': url, | ||
'extract-news': opts['extractNews'], | ||
'api-key': apiKey | ||
'analyze': analyze | ||
}; | ||
@@ -242,3 +233,3 @@ var headerParams = {}; | ||
* @param {String} error Error message, if any. | ||
* @param {module:model/SearchNewsResponse} data The data returned by the service call. | ||
* @param {module:model/SearchNews200Response} data The data returned by the service call. | ||
* @param {String} response The complete HTTP response. | ||
@@ -249,7 +240,7 @@ */ | ||
* Search News | ||
* Search for news. | ||
* Search and filter news by text, date, location, language, and more. The API returns a list of news articles matching the given criteria. You can set as many filtering parameters as you like, but you have to set at least one, e.g. text or language. | ||
* @param {Object} opts Optional parameters | ||
* @param {String} [text] The text to match in the news content. | ||
* @param {String} [sourceCountries] A comma-separated list of ISO 3166 country codes from which the news should originate, e.g. gb,us. | ||
* @param {String} [language] The ISO 6391 language code of the news, e.g. \"en\" for English. | ||
* @param {String} [text] The text to match in the news content (at least 3 characters). By default all query terms are expected, you can use an uppercase OR to search for any terms, e.g. tesla OR ford | ||
* @param {String} [sourceCountries] A comma-separated list of ISO 3166 country codes from which the news should originate. | ||
* @param {String} [language] The ISO 6391 language code of the news. | ||
* @param {Number} [minSentiment] The minimal sentiment of the news in range [-1,1]. | ||
@@ -259,12 +250,12 @@ * @param {Number} [maxSentiment] The maximal sentiment of the news in range [-1,1]. | ||
* @param {String} [latestPublishDate] The news must have been published before this date. | ||
* @param {String} [newsSources] A comma-separated list of news sources from which the news should originate, e.g. https://www.bbc.co.uk | ||
* @param {String} [newsSources] A comma-separated list of news sources from which the news should originate. | ||
* @param {String} [authors] A comma-separated list of author names. Only news from any of the given authors will be returned. | ||
* @param {String} [entities] Filter news by entities, e.g. ORG:Tesla. | ||
* @param {String} [locationFilter] Filter news by radius around a certain location. Format is \"latitude,longitude,radius in kilometers\", e.g. 51.050407, 13.737262, 100 | ||
* @param {Number} [offset] The number of news to skip in range [0,1000] | ||
* @param {String} [entities] Filter news by entities (see semantic types). | ||
* @param {String} [locationFilter] Filter news by radius around a certain location. Format is \"latitude,longitude,radius in kilometers\". Radius must be between 1 and 100 kilometers. | ||
* @param {String} [sort] The sorting criteria (publish-time or sentiment). | ||
* @param {String} [sortDirection] Whether to sort ascending or descending (ASC or DESC). | ||
* @param {Number} [offset] The number of news to skip in range [0,10000] | ||
* @param {Number} [number] The number of news to return in range [1,100] | ||
* @param {module:model/String} [sort] The sorting criteria. | ||
* @param {module:model/String} [sortDirection] Whether to sort ascending or descending. | ||
* @param {module:api/NewsApi~searchNewsCallback} callback The callback function, accepting three arguments: error, data, response | ||
* data is of type: {@link module:model/SearchNewsResponse} | ||
* data is of type: {@link module:model/SearchNews200Response} | ||
*/ | ||
@@ -289,6 +280,6 @@ }, { | ||
'location-filter': opts['locationFilter'], | ||
'sort': opts['sort'], | ||
'sort-direction': opts['sortDirection'], | ||
'offset': opts['offset'], | ||
'number': opts['number'], | ||
'sort': opts['sort'], | ||
'sort-direction': opts['sortDirection'] | ||
'number': opts['number'] | ||
}; | ||
@@ -300,6 +291,54 @@ var headerParams = {}; | ||
var accepts = ['application/json']; | ||
var returnType = _SearchNewsResponse["default"]; | ||
var returnType = _SearchNews200Response["default"]; | ||
return this.apiClient.callApi('/search-news', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); | ||
} | ||
/** | ||
* Callback function to receive the result of the topNews operation. | ||
* @callback module:api/NewsApi~topNewsCallback | ||
* @param {String} error Error message, if any. | ||
* @param {module:model/TopNews200Response} data The data returned by the service call. | ||
* @param {String} response The complete HTTP response. | ||
*/ | ||
/** | ||
* Top News | ||
* Get the top news from a country in a language for a specific date. The top news are clustered from multiple sources in the given country. The more news in a cluster the higher the cluster is ranked. | ||
* @param {String} sourceCountry The ISO 3166 country code of the country for which top news should be retrieved. | ||
* @param {String} language The ISO 6391 language code of the top news. The language must be one spoken in the source-country. | ||
* @param {Object} opts Optional parameters | ||
* @param {String} [date] The date for which the top news should be retrieved. If no date is given, the current day is assumed. | ||
* @param {Boolean} [headlinesOnly] Whether to only return basic information such as id, title, and url of the news. | ||
* @param {module:api/NewsApi~topNewsCallback} callback The callback function, accepting three arguments: error, data, response | ||
* data is of type: {@link module:model/TopNews200Response} | ||
*/ | ||
}, { | ||
key: "topNews", | ||
value: function topNews(sourceCountry, language, opts, callback) { | ||
opts = opts || {}; | ||
var postBody = null; | ||
// verify the required parameter 'sourceCountry' is set | ||
if (sourceCountry === undefined || sourceCountry === null) { | ||
throw new Error("Missing the required parameter 'sourceCountry' when calling topNews"); | ||
} | ||
// verify the required parameter 'language' is set | ||
if (language === undefined || language === null) { | ||
throw new Error("Missing the required parameter 'language' when calling topNews"); | ||
} | ||
var pathParams = {}; | ||
var queryParams = { | ||
'source-country': sourceCountry, | ||
'language': language, | ||
'date': opts['date'], | ||
'headlines-only': opts['headlinesOnly'] | ||
}; | ||
var headerParams = {}; | ||
var formParams = {}; | ||
var authNames = ['apiKey', 'headerApiKey']; | ||
var contentTypes = []; | ||
var accepts = ['application/json']; | ||
var returnType = _TopNews200Response["default"]; | ||
return this.apiClient.callApi('/top-news', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); | ||
} | ||
}]); | ||
}(); |
@@ -9,7 +9,7 @@ "use strict"; | ||
var _querystring = _interopRequireDefault(require("querystring")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } | ||
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } | ||
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } | ||
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } | ||
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } | ||
@@ -20,3 +20,3 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** | ||
* | ||
* The version of the OpenAPI document: 1.1 | ||
* The version of the OpenAPI document: 1.1.1 | ||
* Contact: mail@worldnewsapi.com | ||
@@ -31,3 +31,3 @@ * | ||
* @module ApiClient | ||
* @version 1.0.11 | ||
* @version 1.1.1 | ||
*/ | ||
@@ -80,3 +80,3 @@ /** | ||
this.defaultHeaders = { | ||
'User-Agent': 'OpenAPI-Generator/1.0.11/Javascript' | ||
'User-Agent': 'OpenAPI-Generator/1.1.1/Javascript' | ||
}; | ||
@@ -83,0 +83,0 @@ |
@@ -12,52 +12,66 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "ExtractLinksResponse", { | ||
Object.defineProperty(exports, "ExtractNews200Response", { | ||
enumerable: true, | ||
get: function get() { | ||
return _ExtractLinksResponse["default"]; | ||
return _ExtractNews200Response["default"]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "ExtractNewsResponse", { | ||
Object.defineProperty(exports, "ExtractNewsLinks200Response", { | ||
enumerable: true, | ||
get: function get() { | ||
return _ExtractNewsResponse["default"]; | ||
return _ExtractNewsLinks200Response["default"]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "GeoCoordinatesResponse", { | ||
Object.defineProperty(exports, "GetGeoCoordinates200Response", { | ||
enumerable: true, | ||
get: function get() { | ||
return _GeoCoordinatesResponse["default"]; | ||
return _GetGeoCoordinates200Response["default"]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "News", { | ||
Object.defineProperty(exports, "NewsApi", { | ||
enumerable: true, | ||
get: function get() { | ||
return _News["default"]; | ||
return _NewsApi["default"]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "NewsApi", { | ||
Object.defineProperty(exports, "SearchNews200Response", { | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsApi["default"]; | ||
return _SearchNews200Response["default"]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "NewsArticle", { | ||
Object.defineProperty(exports, "SearchNews200ResponseNewsInner", { | ||
enumerable: true, | ||
get: function get() { | ||
return _NewsArticle["default"]; | ||
return _SearchNews200ResponseNewsInner["default"]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "SearchNewsResponse", { | ||
Object.defineProperty(exports, "TopNews200Response", { | ||
enumerable: true, | ||
get: function get() { | ||
return _SearchNewsResponse["default"]; | ||
return _TopNews200Response["default"]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "TopNews200ResponseTopNewsInner", { | ||
enumerable: true, | ||
get: function get() { | ||
return _TopNews200ResponseTopNewsInner["default"]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "TopNews200ResponseTopNewsInnerNewsInner", { | ||
enumerable: true, | ||
get: function get() { | ||
return _TopNews200ResponseTopNewsInnerNewsInner["default"]; | ||
} | ||
}); | ||
var _ApiClient = _interopRequireDefault(require("./ApiClient")); | ||
var _ExtractLinksResponse = _interopRequireDefault(require("./model/ExtractLinksResponse")); | ||
var _ExtractNewsResponse = _interopRequireDefault(require("./model/ExtractNewsResponse")); | ||
var _GeoCoordinatesResponse = _interopRequireDefault(require("./model/GeoCoordinatesResponse")); | ||
var _News = _interopRequireDefault(require("./model/News")); | ||
var _NewsArticle = _interopRequireDefault(require("./model/NewsArticle")); | ||
var _SearchNewsResponse = _interopRequireDefault(require("./model/SearchNewsResponse")); | ||
var _ExtractNews200Response = _interopRequireDefault(require("./model/ExtractNews200Response")); | ||
var _ExtractNewsLinks200Response = _interopRequireDefault(require("./model/ExtractNewsLinks200Response")); | ||
var _GetGeoCoordinates200Response = _interopRequireDefault(require("./model/GetGeoCoordinates200Response")); | ||
var _SearchNews200Response = _interopRequireDefault(require("./model/SearchNews200Response")); | ||
var _SearchNews200ResponseNewsInner = _interopRequireDefault(require("./model/SearchNews200ResponseNewsInner")); | ||
var _TopNews200Response = _interopRequireDefault(require("./model/TopNews200Response")); | ||
var _TopNews200ResponseTopNewsInner = _interopRequireDefault(require("./model/TopNews200ResponseTopNewsInner")); | ||
var _TopNews200ResponseTopNewsInnerNewsInner = _interopRequireDefault(require("./model/TopNews200ResponseTopNewsInnerNewsInner")); | ||
var _NewsApi = _interopRequireDefault(require("./api/NewsApi")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } |
{ | ||
"name": "worldnewsapi", | ||
"version": "1.0.11", | ||
"version": "1.1.1", | ||
"description": "The world's news wrapped into a single API.", | ||
@@ -5,0 +5,0 @@ "license": "Unlicense", |
@@ -7,4 +7,4 @@ # worldnewsapi | ||
- API version: 1.1 | ||
- Package version: 1.0.11 | ||
- API version: 1.1.1 | ||
- Package version: 1.1.1 | ||
- Generator version: 7.5.0 | ||
@@ -139,5 +139,6 @@ - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen | ||
*Worldnewsapi.NewsApi* | [**extractNewsLinks**](docs/NewsApi.md#extractNewsLinks) | **GET** /extract-news-links | Extract News Links | ||
*Worldnewsapi.NewsApi* | [**geoCoordinates**](docs/NewsApi.md#geoCoordinates) | **GET** /geo-coordinates | Get Geo Coordinates | ||
*Worldnewsapi.NewsApi* | [**getGeoCoordinates**](docs/NewsApi.md#getGeoCoordinates) | **GET** /geo-coordinates | Get Geo Coordinates | ||
*Worldnewsapi.NewsApi* | [**newsWebsiteToRSSFeed**](docs/NewsApi.md#newsWebsiteToRSSFeed) | **GET** /feed.rss | News Website to RSS Feed | ||
*Worldnewsapi.NewsApi* | [**searchNews**](docs/NewsApi.md#searchNews) | **GET** /search-news | Search News | ||
*Worldnewsapi.NewsApi* | [**topNews**](docs/NewsApi.md#topNews) | **GET** /top-news | Top News | ||
@@ -147,8 +148,10 @@ | ||
- [Worldnewsapi.ExtractLinksResponse](docs/ExtractLinksResponse.md) | ||
- [Worldnewsapi.ExtractNewsResponse](docs/ExtractNewsResponse.md) | ||
- [Worldnewsapi.GeoCoordinatesResponse](docs/GeoCoordinatesResponse.md) | ||
- [Worldnewsapi.News](docs/News.md) | ||
- [Worldnewsapi.NewsArticle](docs/NewsArticle.md) | ||
- [Worldnewsapi.SearchNewsResponse](docs/SearchNewsResponse.md) | ||
- [Worldnewsapi.ExtractNews200Response](docs/ExtractNews200Response.md) | ||
- [Worldnewsapi.ExtractNewsLinks200Response](docs/ExtractNewsLinks200Response.md) | ||
- [Worldnewsapi.GetGeoCoordinates200Response](docs/GetGeoCoordinates200Response.md) | ||
- [Worldnewsapi.SearchNews200Response](docs/SearchNews200Response.md) | ||
- [Worldnewsapi.SearchNews200ResponseNewsInner](docs/SearchNews200ResponseNewsInner.md) | ||
- [Worldnewsapi.TopNews200Response](docs/TopNews200Response.md) | ||
- [Worldnewsapi.TopNews200ResponseTopNewsInner](docs/TopNews200ResponseTopNewsInner.md) | ||
- [Worldnewsapi.TopNews200ResponseTopNewsInnerNewsInner](docs/TopNews200ResponseTopNewsInnerNewsInner.md) | ||
@@ -155,0 +158,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
108096
2
13
2129
174
1