UNPKG

bungie-net-core

Version:

An easy way to interact with the Bungie.net API

35 lines (34 loc) 1.66 kB
/** * Bungie.Net API * These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality. * * Contact: support@bungie.com * * NOTE: This class is auto generated by the bungie-net-core code generator program * Repository: {@link https://github.com/owens1127/bungie-net-core} * Do not edit these files manually. */ import { BungieHttpProtocol } from './..'; import { BungieNetResponse } from '../interfaces/BungieNetResponse'; import { ApiUsage } from '../models/Applications/ApiUsage'; import { Application } from '../models/Applications/Application'; /** * 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. * @see {@link https://bungie-net.github.io/#App.GetApplicationApiUsage} */ export declare function getApplicationApiUsage(http: BungieHttpProtocol, params: { /** ID of the application to get usage statistics. */ applicationId: number; /** End time for query. Goes to now if not specified. */ end?: string; /** Start time for query. Goes to 24 hours ago if not specified. */ start?: string; }): Promise<BungieNetResponse<ApiUsage>>; /** * Get list of applications created by Bungie. * @see {@link https://bungie-net.github.io/#App.GetBungieApplications} */ export declare function getBungieApplications(http: BungieHttpProtocol): Promise<BungieNetResponse<Application[]>>;