ChangesApi with auto-pagination support

Hierarchy (view full)

Constructors

Properties

configuration: Configuration = DefaultConfig

Methods

  • Query the new, removed, updated, expiring or upcoming movies/series/seasons/episodes in a given list of streaming services. Results are ordered by the date of the changes. Changes listed per page is 25. Changes are listed under changes field, and shows affected by these changes are listed under shows field. Note that upcoming changes are only supported for Apple TV, Disney+, Max, Netflix and Prime Video. For other services, upcoming changes will return an empty list. Get Changes

    Parameters

    Returns Promise<ChangesResult>

  • Query the new, removed, updated, expiring or upcoming movies/series/seasons/episodes in a given list of streaming services. Results are ordered by the date of the changes. Changes listed per page is 25. Changes are listed under changes field, and shows affected by these changes are listed under shows field. Note that upcoming changes are only supported for Apple TV, Disney+, Max, Netflix and Prime Video. For other services, upcoming changes will return an empty list. Get Changes

    Parameters

    Returns Promise<ApiResponse<ChangesResult>>

  • Performs getChanges with auto-pagination. Unlike the original getChanges, this method returns ChangeWithShow objects, which include the Show object that corresponds to the showId field of the Change object.

    Parameters

    • requestParameters: GetChangesRequest

      Request parameters

    • maxPages: number

      Maximum number of pages to fetch. If 0 or less, fetches all pages.

    • OptionalinitOverrides: RequestInit | InitOverrideFunction

      Optional overrides for the fetch init parameters

    Returns AsyncGenerator<ChangeWithShow, void, void>

    AsyncGenerator of ChangeWithShow

  • Check if the given MIME is a JSON MIME. JSON MIME examples: application/json application/json; charset=UTF8 APPLICATION/JSON application/vnd.company+json

    Parameters

    • mime: string

      MIME (Multipurpose Internet Mail Extensions)

    Returns boolean

    True if the given MIME is JSON, false otherwise.