github.com/twilio/twilio-go@v1.20.1/rest/wireless/v1/docs/SimsUsageRecordsApi.md (about) 1 # SimsUsageRecordsApi 2 3 All URIs are relative to *https://wireless.twilio.com* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**ListUsageRecord**](SimsUsageRecordsApi.md#ListUsageRecord) | **Get** /v1/Sims/{SimSid}/UsageRecords | 8 9 10 11 ## ListUsageRecord 12 13 > []WirelessV1UsageRecord ListUsageRecord(ctx, SimSidoptional) 14 15 16 17 18 19 ### Path Parameters 20 21 22 Name | Type | Description 23 ------------- | ------------- | ------------- 24 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 25 **SimSid** | **string** | The SID of the [Sim resource](https://www.twilio.com/docs/iot/wireless/api/sim-resource) to read the usage from. 26 27 ### Other Parameters 28 29 Other parameters are passed through a pointer to a ListUsageRecordParams struct 30 31 32 Name | Type | Description 33 ------------- | ------------- | ------------- 34 **End** | **time.Time** | Only include usage that occurred on or before this date, specified in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). The default is the current time. 35 **Start** | **time.Time** | Only include usage that has occurred on or after this date, specified in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). The default is one month before the `end` parameter value. 36 **Granularity** | **string** | How to summarize the usage by time. Can be: `daily`, `hourly`, or `all`. The default is `all`. A value of `all` returns one Usage Record that describes the usage for the entire period. 37 **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. 38 **Limit** | **int** | Max number of records to return. 39 40 ### Return type 41 42 [**[]WirelessV1UsageRecord**](WirelessV1UsageRecord.md) 43 44 ### Authorization 45 46 [accountSid_authToken](../README.md#accountSid_authToken) 47 48 ### HTTP request headers 49 50 - **Content-Type**: Not defined 51 - **Accept**: application/json 52 53 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 54 [[Back to Model list]](../README.md#documentation-for-models) 55 [[Back to README]](../README.md) 56