Hierarchy (View Summary)

Constructors

Properties

allowUnsafeEval: boolean
apiExtra?: unknown
apiKey?: string
apiUrl: string
apiUrlPlaceholder: string = "https://www.bing.com/"
baseLang: string = config.baseLang
fetchOpts: Record<string, unknown>
headers: { "Content-Type": string; "User-Agent": string } = ...
origin: string
originPlaceholder: string = "https://www.bing.com"

Methods

  • Returns Promise<
        { creationTimestamp: number; ig: string; maxAge: number; token: string },
    >

  • Parameters

    • Optionalbody: string
    • headers: Record<string, string> = {}
    • method: RequestMethod = "POST"

    Returns {
        body: undefined | string;
        headers: {
            "Content-Type": string;
            Origin: string;
            Referer: string;
            "User-Agent": string;
        };
        method: RequestMethod;
    }

  • Parameters

    • params: Record<string, string> = {}

    Returns string

  • The standard method for requesting the API, if necessary, you can override how it is done in the example

    Type Parameters

    • T extends object

    Parameters

    • path: string
    • Optionalbody: string
    • headers: Record<string, string> = {}
    • method: RequestMethod = "POST"

    Returns Promise<ProviderResponse<T>>