NewsService class for fetching a simple JSON feed of GeoNet's news from the GeoNet API.

1.0.0

Hierarchy (View Summary)

Constructors

Methods

Constructors

Methods

  • Fetches a simple JSON feed of GeoNet's news.

    Parameters

    • Optionalpage: number

      The request parameters for fetching the news feed. If empty, the first page is returned.

    Returns Promise<NewsFeedResponse>

    • A promise that resolves to the simple JSON news feed data.
    • Throws an error if the page number is not an integer.

    1.0.0