getApplicationApiUsage function

Future<ServerResponse<ApiUsage>> getApplicationApiUsage (
  1. HttpClient http,
  2. 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.


Future<ServerResponse<ApiUsage>> getApplicationApiUsage(HttpClient http, GetApplicationApiUsageParams params) {
  return http.request(new HttpClientConfig(
      'end': params.end,
      'start': params.start