getApplicationApiUsage function

Future<ServerResponse<ApiUsage>> getApplicationApiUsage (HttpClient http, GetApplicationApiUsageParams params)

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.

Implementation

Future<ServerResponse<ApiUsage>> getApplicationApiUsage(HttpClient http, GetApplicationApiUsageParams params) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/App/ApiUsage/${params.applicationId}/",
    {
      'end': params.end,
      'start': params.start
    },
    null
    ));
}