Class AbstractRequest<R>Abstract

Abstract class to represent requests to the Instagram Graph API.

Author

Tiago Grosso tiagogrosso99@gmail.com

Since

0.2.0

Type Parameters

Hierarchy

Constructors

Properties

apiVersion?: ApiVersion

The API Version.

params: Params

The request params.

Methods

  • Adds the limit param to the request.

    Deprecated

    since 1.7.0, use withLimit instead.

    Parameters

    • limit: number

      the number of objects to retrieve.

    Returns void

  • Adds the range params to the request.

    Deprecated

    since 1.7.0, use withRange instead.

    Parameters

    • since: Date

      the since param.

    • until: Date

      the until param.

    Returns void

  • Executes the requests and returns a promise of the parsed response.

    Returns

    the promise of a parsed response.

    Returns Promise<R>

  • Parses the response into a response object.

    Parameters

    • response: AxiosResponse<unknown>

      the parsed response.

    Returns R

Generated using TypeDoc