aniql
    Preparing search index...

    Class AniQLClient

    AniQLClient is a client for interacting with the AniList GraphQL API. It allows you to perform queries and mutations against the AniList API. You can also get the login URL to authenticate users.

    The client will automatically include the token, if provided via options, in the Authorization header for requests.

    For documentation on the AniList API, see https://docs.anilist.co/

    Index

    Constructors

    Properties

    base_url: string = 'https://graphql.anilist.co'
    rate_limit: RateLimitData = ...

    Accessors

    Methods

    • Type Parameters

      • R extends MutationGenqlSelection

      Parameters

      Returns Promise<FieldsSelection<Mutation, R>>

    • Type Parameters

      • R extends QueryGenqlSelection

      Parameters

      • request: R & { __name?: string }

      Returns R & { __name?: string }

    • Type Parameters

      • R extends MutationGenqlSelection

      Parameters

      • request: R & { __name?: string }

      Returns R & { __name?: string }

    • Parameters

      • code: string

      Returns Promise<
          {
              access_token: string;
              token_type: string;
              expires_in: number;
              refresh_token: string;
          },
      >