Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 1.76 KB

File metadata and controls

67 lines (45 loc) · 1.76 KB

StatisticsApi

All URIs are relative to http://localhost

Method HTTP request Description
getStatistics GET /accounts/{accountId}/statistics Get Account Statistics

getStatistics

AccountStatistics getStatistics()

Returns details about the current state of the account.

Example

import {
    StatisticsApi,
    Configuration
} from 'bandwidth-sdk';

const configuration = new Configuration();
const apiInstance = new StatisticsApi(configuration);

let accountId: string; //Your Bandwidth Account ID. (default to undefined)

const { status, data } = await apiInstance.getStatistics(
    accountId
);

Parameters

Name Type Description Notes
accountId [string] Your Bandwidth Account ID. defaults to undefined

Return type

AccountStatistics

Authorization

Basic, OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
405 Method Not Allowed -
415 Unsupported Media Type -
429 Too Many Requests * Retry-After - When you should try your request again.
500 Internal Server Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]