Skip to content

Latest commit

 

History

History
46 lines (26 loc) · 2.65 KB

Api20100401MonthlyApi.md

File metadata and controls

46 lines (26 loc) · 2.65 KB

\Api20100401MonthlyApi

All URIs are relative to https://api.twilio.com

Method HTTP request Description
list_usage_record_monthly GET /2010-04-01/Accounts/{AccountSid}/Usage/Records/Monthly.json

list_usage_record_monthly

crate::models::ListUsageRecordMonthlyResponse list_usage_record_monthly(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token)

Parameters

Name Type Description Required Notes
account_sid String The SID of the Account that created the UsageRecord resources to read. [required]
category Option<UsageRecordMonthlyEnumCategory> The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
start_date Option<String> Only include usage that has occurred on or after this date. Specify the date in GMT and format as YYYY-MM-DD. You can also specify offsets from the current date, such as: -30days, which will set the start date to be 30 days before the current date.
end_date Option<String> Only include usage that occurred on or before this date. Specify the date in GMT and format as YYYY-MM-DD. You can also specify offsets from the current date, such as: +30days, which will set the end date to 30 days from the current date.
include_subaccounts Option<bool> Whether to include usage from the master account and all its subaccounts. Can be: true (the default) to include usage from the master account and all subaccounts or false to retrieve usage from only the specified account.
page_size Option<i32> How many resources to return in each list page. The default is 50, and the maximum is 1000.
page Option<i32> The page index. This value is simply for client state.
page_token Option<String> The page token. This is provided by the API.

Return type

crate::models::ListUsageRecordMonthlyResponse

Authorization

accountSid_authToken

HTTP request headers

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

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