Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

worldnewsapi

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

worldnewsapi - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

dist/model/RetrieveNewspaperFrontPage200Response.js

78

dist/api/NewsApi.js

@@ -11,4 +11,4 @@ "use strict";

var _GetGeoCoordinates200Response = _interopRequireDefault(require("../model/GetGeoCoordinates200Response"));
var _NewspaperFrontPages200Response = _interopRequireDefault(require("../model/NewspaperFrontPages200Response"));
var _RetrieveNewsArticlesByIds200Response = _interopRequireDefault(require("../model/RetrieveNewsArticlesByIds200Response"));
var _RetrieveNewspaperFrontPage200Response = _interopRequireDefault(require("../model/RetrieveNewspaperFrontPage200Response"));
var _SearchNews200Response = _interopRequireDefault(require("../model/SearchNews200Response"));

@@ -26,3 +26,3 @@ var _TopNews200Response = _interopRequireDefault(require("../model/TopNews200Response"));

*
* The version of the OpenAPI document: 1.3.1
* The version of the OpenAPI document: 1.3.2
* Contact: mail@worldnewsapi.com

@@ -38,3 +38,3 @@ *

* @module api/NewsApi
* @version 1.3.1
* @version 1.3.2
*/

@@ -217,6 +217,6 @@ var NewsApi = exports["default"] = /*#__PURE__*/function () {

/**
* Callback function to receive the result of the newspaperFrontPages operation.
* @callback module:api/NewsApi~newspaperFrontPagesCallback
* Callback function to receive the result of the retrieveNewsArticlesByIds operation.
* @callback module:api/NewsApi~retrieveNewsArticlesByIdsCallback
* @param {String} error Error message, if any.
* @param {module:model/NewspaperFrontPages200Response} data The data returned by the service call.
* @param {module:model/RetrieveNewsArticlesByIds200Response} data The data returned by the service call.
* @param {String} response The complete HTTP response.

@@ -226,21 +226,19 @@ */

/**
* Newspaper Front Pages
* Get the front pages of newspapers from around the world. The API provides images of the front pages of newspapers from different countries. Here's an example of some of today's newspapers:
* @param {Object} opts Optional parameters
* @param {String} [sourceCountry] The ISO 3166 country code of the newspaper publication.
* @param {String} [sourceName] The identifier of the publication see attached list.
* @param {String} [date] The date for which the front page should be retrieved. You can also go into the past, the earliest date is 2024-07-09.
* @param {module:api/NewsApi~newspaperFrontPagesCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/NewspaperFrontPages200Response}
* Retrieve News Articles by Ids
* Retrieve information about one or more news articles by their ids. The ids can be retrieved from the search news or top news APIs.
* @param {String} ids A comma separated list of news ids.
* @param {module:api/NewsApi~retrieveNewsArticlesByIdsCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/RetrieveNewsArticlesByIds200Response}
*/
}, {
key: "newspaperFrontPages",
value: function newspaperFrontPages(opts, callback) {
opts = opts || {};
key: "retrieveNewsArticlesByIds",
value: function retrieveNewsArticlesByIds(ids, callback) {
var postBody = null;
// verify the required parameter 'ids' is set
if (ids === undefined || ids === null) {
throw new Error("Missing the required parameter 'ids' when calling retrieveNewsArticlesByIds");
}
var pathParams = {};
var queryParams = {
'source-country': opts['sourceCountry'],
'source-name': opts['sourceName'],
'date': opts['date']
'ids': ids
};

@@ -252,11 +250,11 @@ var headerParams = {};

var accepts = ['application/json'];
var returnType = _NewspaperFrontPages200Response["default"];
return this.apiClient.callApi('/retrieve-front-page', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
var returnType = _RetrieveNewsArticlesByIds200Response["default"];
return this.apiClient.callApi('/retrieve-news', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
}
/**
* Callback function to receive the result of the retrieveNewsArticlesByIds operation.
* @callback module:api/NewsApi~retrieveNewsArticlesByIdsCallback
* Callback function to receive the result of the retrieveNewspaperFrontPage operation.
* @callback module:api/NewsApi~retrieveNewspaperFrontPageCallback
* @param {String} error Error message, if any.
* @param {module:model/RetrieveNewsArticlesByIds200Response} data The data returned by the service call.
* @param {module:model/RetrieveNewspaperFrontPage200Response} data The data returned by the service call.
* @param {String} response The complete HTTP response.

@@ -266,19 +264,21 @@ */

/**
* Retrieve News Articles by Ids
* Retrieve information about one or more news articles by their ids. The ids can be retrieved from the search news or top news APIs.
* @param {String} ids A comma separated list of news ids.
* @param {module:api/NewsApi~retrieveNewsArticlesByIdsCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/RetrieveNewsArticlesByIds200Response}
* Retrieve Newspaper Front Page
* Get the front pages of newspapers from around the world. The API provides images of the front pages of newspapers from different countries. Here's an example of some of today's newspapers:
* @param {Object} opts Optional parameters
* @param {String} [sourceCountry] The ISO 3166 country code of the newspaper publication.
* @param {String} [sourceName] The identifier of the publication see attached list.
* @param {String} [date] The date for which the front page should be retrieved. You can also go into the past, the earliest date is 2024-07-09.
* @param {module:api/NewsApi~retrieveNewspaperFrontPageCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/RetrieveNewspaperFrontPage200Response}
*/
}, {
key: "retrieveNewsArticlesByIds",
value: function retrieveNewsArticlesByIds(ids, callback) {
key: "retrieveNewspaperFrontPage",
value: function retrieveNewspaperFrontPage(opts, callback) {
opts = opts || {};
var postBody = null;
// verify the required parameter 'ids' is set
if (ids === undefined || ids === null) {
throw new Error("Missing the required parameter 'ids' when calling retrieveNewsArticlesByIds");
}
var pathParams = {};
var queryParams = {
'ids': ids
'source-country': opts['sourceCountry'],
'source-name': opts['sourceName'],
'date': opts['date']
};

@@ -290,4 +290,4 @@ var headerParams = {};

var accepts = ['application/json'];
var returnType = _RetrieveNewsArticlesByIds200Response["default"];
return this.apiClient.callApi('/retrieve-news', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
var returnType = _RetrieveNewspaperFrontPage200Response["default"];
return this.apiClient.callApi('/retrieve-front-page', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
}

@@ -294,0 +294,0 @@

@@ -19,3 +19,3 @@ "use strict";

*
* The version of the OpenAPI document: 1.3.1
* The version of the OpenAPI document: 1.3.2
* Contact: mail@worldnewsapi.com

@@ -30,3 +30,3 @@ *

* @module ApiClient
* @version 1.3.1
* @version 1.3.2
*/

@@ -79,3 +79,3 @@ /**

this.defaultHeaders = {
'User-Agent': 'OpenAPI-Generator/1.3.1/Javascript'
'User-Agent': 'OpenAPI-Generator/1.3.2/Javascript'
};

@@ -82,0 +82,0 @@

@@ -48,24 +48,24 @@ "use strict";

});
Object.defineProperty(exports, "NewspaperFrontPages200Response", {
Object.defineProperty(exports, "RetrieveNewsArticlesByIds200Response", {
enumerable: true,
get: function get() {
return _NewspaperFrontPages200Response["default"];
return _RetrieveNewsArticlesByIds200Response["default"];
}
});
Object.defineProperty(exports, "NewspaperFrontPages200ResponseFrontPage", {
Object.defineProperty(exports, "RetrieveNewsArticlesByIds200ResponseNewsInner", {
enumerable: true,
get: function get() {
return _NewspaperFrontPages200ResponseFrontPage["default"];
return _RetrieveNewsArticlesByIds200ResponseNewsInner["default"];
}
});
Object.defineProperty(exports, "RetrieveNewsArticlesByIds200Response", {
Object.defineProperty(exports, "RetrieveNewspaperFrontPage200Response", {
enumerable: true,
get: function get() {
return _RetrieveNewsArticlesByIds200Response["default"];
return _RetrieveNewspaperFrontPage200Response["default"];
}
});
Object.defineProperty(exports, "RetrieveNewsArticlesByIds200ResponseNewsInner", {
Object.defineProperty(exports, "RetrieveNewspaperFrontPage200ResponseFrontPage", {
enumerable: true,
get: function get() {
return _RetrieveNewsArticlesByIds200ResponseNewsInner["default"];
return _RetrieveNewspaperFrontPage200ResponseFrontPage["default"];
}

@@ -109,6 +109,6 @@ });

var _GetGeoCoordinates200Response = _interopRequireDefault(require("./model/GetGeoCoordinates200Response"));
var _NewspaperFrontPages200Response = _interopRequireDefault(require("./model/NewspaperFrontPages200Response"));
var _NewspaperFrontPages200ResponseFrontPage = _interopRequireDefault(require("./model/NewspaperFrontPages200ResponseFrontPage"));
var _RetrieveNewsArticlesByIds200Response = _interopRequireDefault(require("./model/RetrieveNewsArticlesByIds200Response"));
var _RetrieveNewsArticlesByIds200ResponseNewsInner = _interopRequireDefault(require("./model/RetrieveNewsArticlesByIds200ResponseNewsInner"));
var _RetrieveNewspaperFrontPage200Response = _interopRequireDefault(require("./model/RetrieveNewspaperFrontPage200Response"));
var _RetrieveNewspaperFrontPage200ResponseFrontPage = _interopRequireDefault(require("./model/RetrieveNewspaperFrontPage200ResponseFrontPage"));
var _SearchNews200Response = _interopRequireDefault(require("./model/SearchNews200Response"));

@@ -115,0 +115,0 @@ var _SearchNews200ResponseNewsInner = _interopRequireDefault(require("./model/SearchNews200ResponseNewsInner"));

@@ -23,3 +23,3 @@ "use strict";

*
* The version of the OpenAPI document: 1.3.1
* The version of the OpenAPI document: 1.3.2
* Contact: mail@worldnewsapi.com

@@ -35,3 +35,3 @@ *

* @module model/ExtractNews200Response
* @version 1.3.1
* @version 1.3.2
*/

@@ -38,0 +38,0 @@ var ExtractNews200Response = /*#__PURE__*/function () {

@@ -18,3 +18,3 @@ "use strict";

*
* The version of the OpenAPI document: 1.3.1
* The version of the OpenAPI document: 1.3.2
* Contact: mail@worldnewsapi.com

@@ -30,3 +30,3 @@ *

* @module model/ExtractNews200ResponseImagesInner
* @version 1.3.1
* @version 1.3.2
*/

@@ -33,0 +33,0 @@ var ExtractNews200ResponseImagesInner = /*#__PURE__*/function () {

@@ -18,3 +18,3 @@ "use strict";

*
* The version of the OpenAPI document: 1.3.1
* The version of the OpenAPI document: 1.3.2
* Contact: mail@worldnewsapi.com

@@ -30,3 +30,3 @@ *

* @module model/ExtractNews200ResponseVideosInner
* @version 1.3.1
* @version 1.3.2
*/

@@ -33,0 +33,0 @@ var ExtractNews200ResponseVideosInner = /*#__PURE__*/function () {

@@ -18,3 +18,3 @@ "use strict";

*
* The version of the OpenAPI document: 1.3.1
* The version of the OpenAPI document: 1.3.2
* Contact: mail@worldnewsapi.com

@@ -30,3 +30,3 @@ *

* @module model/ExtractNewsLinks200Response
* @version 1.3.1
* @version 1.3.2
*/

@@ -33,0 +33,0 @@ var ExtractNewsLinks200Response = /*#__PURE__*/function () {

@@ -18,3 +18,3 @@ "use strict";

*
* The version of the OpenAPI document: 1.3.1
* The version of the OpenAPI document: 1.3.2
* Contact: mail@worldnewsapi.com

@@ -30,3 +30,3 @@ *

* @module model/GetGeoCoordinates200Response
* @version 1.3.1
* @version 1.3.2
*/

@@ -33,0 +33,0 @@ var GetGeoCoordinates200Response = /*#__PURE__*/function () {

@@ -22,3 +22,3 @@ "use strict";

*
* The version of the OpenAPI document: 1.3.1
* The version of the OpenAPI document: 1.3.2
* Contact: mail@worldnewsapi.com

@@ -34,3 +34,3 @@ *

* @module model/RetrieveNewsArticlesByIds200Response
* @version 1.3.1
* @version 1.3.2
*/

@@ -37,0 +37,0 @@ var RetrieveNewsArticlesByIds200Response = /*#__PURE__*/function () {

@@ -18,3 +18,3 @@ "use strict";

*
* The version of the OpenAPI document: 1.3.1
* The version of the OpenAPI document: 1.3.2
* Contact: mail@worldnewsapi.com

@@ -30,3 +30,3 @@ *

* @module model/RetrieveNewsArticlesByIds200ResponseNewsInner
* @version 1.3.1
* @version 1.3.2
*/

@@ -33,0 +33,0 @@ var RetrieveNewsArticlesByIds200ResponseNewsInner = /*#__PURE__*/function () {

@@ -22,3 +22,3 @@ "use strict";

*
* The version of the OpenAPI document: 1.3.1
* The version of the OpenAPI document: 1.3.2
* Contact: mail@worldnewsapi.com

@@ -34,3 +34,3 @@ *

* @module model/SearchNews200Response
* @version 1.3.1
* @version 1.3.2
*/

@@ -37,0 +37,0 @@ var SearchNews200Response = /*#__PURE__*/function () {

@@ -18,3 +18,3 @@ "use strict";

*
* The version of the OpenAPI document: 1.3.1
* The version of the OpenAPI document: 1.3.2
* Contact: mail@worldnewsapi.com

@@ -30,3 +30,3 @@ *

* @module model/SearchNews200ResponseNewsInner
* @version 1.3.1
* @version 1.3.2
*/

@@ -33,0 +33,0 @@ var SearchNews200ResponseNewsInner = /*#__PURE__*/function () {

@@ -22,3 +22,3 @@ "use strict";

*
* The version of the OpenAPI document: 1.3.1
* The version of the OpenAPI document: 1.3.2
* Contact: mail@worldnewsapi.com

@@ -34,3 +34,3 @@ *

* @module model/TopNews200Response
* @version 1.3.1
* @version 1.3.2
*/

@@ -37,0 +37,0 @@ var TopNews200Response = /*#__PURE__*/function () {

@@ -22,3 +22,3 @@ "use strict";

*
* The version of the OpenAPI document: 1.3.1
* The version of the OpenAPI document: 1.3.2
* Contact: mail@worldnewsapi.com

@@ -34,3 +34,3 @@ *

* @module model/TopNews200ResponseTopNewsInner
* @version 1.3.1
* @version 1.3.2
*/

@@ -37,0 +37,0 @@ var TopNews200ResponseTopNewsInner = /*#__PURE__*/function () {

@@ -18,3 +18,3 @@ "use strict";

*
* The version of the OpenAPI document: 1.3.1
* The version of the OpenAPI document: 1.3.2
* Contact: mail@worldnewsapi.com

@@ -30,3 +30,3 @@ *

* @module model/TopNews200ResponseTopNewsInnerNewsInner
* @version 1.3.1
* @version 1.3.2
*/

@@ -33,0 +33,0 @@ var TopNews200ResponseTopNewsInnerNewsInner = /*#__PURE__*/function () {

{
"name": "worldnewsapi",
"version": "1.3.1",
"version": "1.3.2",
"description": "The world's news wrapped into a single API.",

@@ -5,0 +5,0 @@ "license": "Unlicense",

@@ -7,4 +7,4 @@ # worldnewsapi

- API version: 1.3.1
- Package version: 1.3.1
- API version: 1.3.2
- Package version: 1.3.2
- Generator version: 7.8.0-SNAPSHOT

@@ -141,4 +141,4 @@ - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen

*Worldnewsapi.NewsApi* | [**newsWebsiteToRSSFeed**](docs/NewsApi.md#newsWebsiteToRSSFeed) | **GET** /feed.rss | News Website to RSS Feed
*Worldnewsapi.NewsApi* | [**newspaperFrontPages**](docs/NewsApi.md#newspaperFrontPages) | **GET** /retrieve-front-page | Newspaper Front Pages
*Worldnewsapi.NewsApi* | [**retrieveNewsArticlesByIds**](docs/NewsApi.md#retrieveNewsArticlesByIds) | **GET** /retrieve-news | Retrieve News Articles by Ids
*Worldnewsapi.NewsApi* | [**retrieveNewspaperFrontPage**](docs/NewsApi.md#retrieveNewspaperFrontPage) | **GET** /retrieve-front-page | Retrieve Newspaper Front Page
*Worldnewsapi.NewsApi* | [**searchNews**](docs/NewsApi.md#searchNews) | **GET** /search-news | Search News

@@ -155,6 +155,6 @@ *Worldnewsapi.NewsApi* | [**topNews**](docs/NewsApi.md#topNews) | **GET** /top-news | Top News

- [Worldnewsapi.GetGeoCoordinates200Response](docs/GetGeoCoordinates200Response.md)
- [Worldnewsapi.NewspaperFrontPages200Response](docs/NewspaperFrontPages200Response.md)
- [Worldnewsapi.NewspaperFrontPages200ResponseFrontPage](docs/NewspaperFrontPages200ResponseFrontPage.md)
- [Worldnewsapi.RetrieveNewsArticlesByIds200Response](docs/RetrieveNewsArticlesByIds200Response.md)
- [Worldnewsapi.RetrieveNewsArticlesByIds200ResponseNewsInner](docs/RetrieveNewsArticlesByIds200ResponseNewsInner.md)
- [Worldnewsapi.RetrieveNewspaperFrontPage200Response](docs/RetrieveNewspaperFrontPage200Response.md)
- [Worldnewsapi.RetrieveNewspaperFrontPage200ResponseFrontPage](docs/RetrieveNewspaperFrontPage200ResponseFrontPage.md)
- [Worldnewsapi.SearchNews200Response](docs/SearchNews200Response.md)

@@ -161,0 +161,0 @@ - [Worldnewsapi.SearchNews200ResponseNewsInner](docs/SearchNews200ResponseNewsInner.md)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc