UNPKG

quria

Version:

A user-friendly Destiny 2 API Wrapper written with TypeScript and approved by -Axis Minds- Oryx.

24 lines (22 loc) 1.37 kB
import { ITokens, APIResponse, ApiUsage, Application } from "../../types"; export declare class App { private url; private headers; constructor(url: string, headers: Record<string, string>); /** * Get API usage by application for time frame specified. You can go as far back as 30 days ago, and can ask for up to a 48 hour window of time in a single request. You must be authenticated with at least the ReadUserData permission to access this endpoint. * @param applicationId ID of the application to get usage statistics. * @param end End time for query. Goes to now if not specified. * @param start Start time for query. Goes to 24 hours ago if not specified. * @returns Get API usage by application for time frame specified. You can go as far back as 30 days ago, and can ask for up to a 48 hour window of time in a single request. You must be authenticated with at least the ReadUserData permission to access this endpoint. */ GetApplicationApiUsage(applicationId: number, queryString: { end?: string; start?: string; } | null, tokens?: ITokens): Promise<APIResponse<ApiUsage>>; /** * Get list of applications created by Bungie. * @returns Get list of applications created by Bungie. */ GetBungieApplications(tokens?: ITokens): Promise<APIResponse<Application[]>>; }