Twilio::UsageApi
Constants
Constructors
Instance methods
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
Create a new UsageTrigger
@required @param account_sid [String?] The SID of the Account that will create the resource.
@required @param callback_url [String?] The URL we should call using callback_method when the trigger fires.
@required @param trigger_value [String?] The usage value at which the trigger should fire. For convenience, you can use an offset value such as +30 to specify a trigger_value that is 30 units more than the current usage value. Be sure to urlencode a + as %2B.
@required @param usage_category [Twilio::UsageRecordEnumCategory?]
@optional @param callback_method [Twilio::HttpMethod?]
@optional @param friendly_name [String?] A descriptive string that you create to describe the resource. It can be up to 64 characters long.
@optional @param recurring [Twilio::UsageTriggerEnumRecurring?]
@optional @param trigger_by [Twilio::UsageTriggerEnumTriggerField?]
@return [Twilio::UsageUsageTrigger]
Create a new UsageTrigger
@required @param account_sid [String?] The SID of the Account that will create the resource.
@required @param callback_url [String?] The URL we should call using callback_method when the trigger fires.
@required @param trigger_value [String?] The usage value at which the trigger should fire. For convenience, you can use an offset value such as +30 to specify a trigger_value that is 30 units more than the current usage value. Be sure to urlencode a + as %2B.
@required @param usage_category [Twilio::UsageRecordEnumCategory?]
@optional @param callback_method [Twilio::HttpMethod?]
@optional @param friendly_name [String?] A descriptive string that you create to describe the resource. It can be up to 64 characters long.
@optional @param recurring [Twilio::UsageTriggerEnumRecurring?]
@optional @param trigger_by [Twilio::UsageTriggerEnumTriggerField?]
@return nil
Create a new UsageTrigger
@required @param account_sid [String?] The SID of the Account that will create the resource.
@required @param callback_url [String?] The URL we should call using callback_method when the trigger fires.
@required @param trigger_value [String?] The usage value at which the trigger should fire. For convenience, you can use an offset value such as +30 to specify a trigger_value that is 30 units more than the current usage value. Be sure to urlencode a + as %2B.
@required @param usage_category [Twilio::UsageRecordEnumCategory?]
@optional @param callback_method [Twilio::HttpMethod?]
@optional @param friendly_name [String?] A descriptive string that you create to describe the resource. It can be up to 64 characters long.
@optional @param recurring [Twilio::UsageTriggerEnumRecurring?]
@optional @param trigger_by [Twilio::UsageTriggerEnumTriggerField?]
@return [Tuple(Twilio::UsageUsageTrigger, Integer, Hash)] Twilio::UsageUsageTrigger, response status code and response headers
@required @param account_sid [String?] The SID of the Account that created the UsageTrigger resources to delete. @required @param sid [String?] The Twilio-provided string that uniquely identifies the UsageTrigger resource to delete. @return [Nil]
@required @param account_sid [String?] The SID of the Account that created the UsageTrigger resources to delete. @required @param sid [String?] The Twilio-provided string that uniquely identifies the UsageTrigger resource to delete. @return nil
@required @param account_sid [String?] The SID of the Account that created the UsageTrigger resources to delete. @required @param sid [String?] The Twilio-provided string that uniquely identifies the UsageTrigger resource to delete. @return [Tuple(Nil, Integer, Hash)] Nil, response status code and response headers
Fetch and instance of a usage-trigger @required @param account_sid [String?] The SID of the Account that created the UsageTrigger resource to fetch. @required @param sid [String?] The Twilio-provided string that uniquely identifies the UsageTrigger resource to fetch. @return [Twilio::UsageUsageTrigger]
Fetch and instance of a usage-trigger @required @param account_sid [String?] The SID of the Account that created the UsageTrigger resource to fetch. @required @param sid [String?] The Twilio-provided string that uniquely identifies the UsageTrigger resource to fetch. @return nil
Fetch and instance of a usage-trigger @required @param account_sid [String?] The SID of the Account that created the UsageTrigger resource to fetch. @required @param sid [String?] The Twilio-provided string that uniquely identifies the UsageTrigger resource to fetch. @return [Tuple(Twilio::UsageUsageTrigger, Integer, Hash)] Twilio::UsageUsageTrigger, response status code and response headers
Retrieve a list of usage-records belonging to the account used to make the request
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Twilio::ListUsageRecordResponse]
Retrieve a list of usage-records belonging to the account used to make the request
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return nil
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Twilio::ListUsageRecordAllTimeResponse]
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return nil
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Tuple(Twilio::ListUsageRecordAllTimeResponse, Integer, Hash)] Twilio::ListUsageRecordAllTimeResponse, response status code and response headers
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Twilio::ListUsageRecordDailyResponse]
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return nil
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Tuple(Twilio::ListUsageRecordDailyResponse, Integer, Hash)] Twilio::ListUsageRecordDailyResponse, response status code and response headers
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Twilio::ListUsageRecordLastMonthResponse]
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return nil
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Tuple(Twilio::ListUsageRecordLastMonthResponse, Integer, Hash)] Twilio::ListUsageRecordLastMonthResponse, response status code and response headers
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Twilio::ListUsageRecordMonthlyResponse]
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return nil
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Tuple(Twilio::ListUsageRecordMonthlyResponse, Integer, Hash)] Twilio::ListUsageRecordMonthlyResponse, response status code and response headers
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Twilio::ListUsageRecordThisMonthResponse]
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return nil
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Tuple(Twilio::ListUsageRecordThisMonthResponse, Integer, Hash)] Twilio::ListUsageRecordThisMonthResponse, response status code and response headers
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Twilio::ListUsageRecordTodayResponse]
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return nil
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Tuple(Twilio::ListUsageRecordTodayResponse, Integer, Hash)] Twilio::ListUsageRecordTodayResponse, response status code and response headers
Retrieve a list of usage-records belonging to the account used to make the request
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Tuple(Twilio::ListUsageRecordResponse, Integer, Hash)] Twilio::ListUsageRecordResponse, response status code and response headers
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Twilio::ListUsageRecordYearlyResponse]
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return nil
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Tuple(Twilio::ListUsageRecordYearlyResponse, Integer, Hash)] Twilio::ListUsageRecordYearlyResponse, response status code and response headers
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Twilio::ListUsageRecordYesterdayResponse]
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return nil
@required @param account_sid [String?] The SID of the Account that created the UsageRecord resources to read.
@optional @param category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
@optional @param start_date [Time?] 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.
@optional @param end_date [Time?] 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.
@optional @param include_subaccounts [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.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Tuple(Twilio::ListUsageRecordYesterdayResponse, Integer, Hash)] Twilio::ListUsageRecordYesterdayResponse, response status code and response headers
Retrieve a list of usage-triggers belonging to the account used to make the request
@required @param account_sid [String?] The SID of the Account that created the UsageTrigger resources to read.
@optional @param recurring [Twilio::UsageTriggerEnumRecurring?] The frequency of recurring UsageTriggers to read. Can be: daily, monthly, or yearly to read recurring UsageTriggers. An empty value or a value of alltime reads non-recurring UsageTriggers.
@optional @param trigger_by [Twilio::UsageTriggerEnumTriggerField?] The trigger field of the UsageTriggers to read. Can be: count, usage, or price as described in the UsageRecords documentation.
@optional @param usage_category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageTriggers to read. Must be a supported usage categories.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Twilio::ListUsageTriggerResponse]
Retrieve a list of usage-triggers belonging to the account used to make the request
@required @param account_sid [String?] The SID of the Account that created the UsageTrigger resources to read.
@optional @param recurring [Twilio::UsageTriggerEnumRecurring?] The frequency of recurring UsageTriggers to read. Can be: daily, monthly, or yearly to read recurring UsageTriggers. An empty value or a value of alltime reads non-recurring UsageTriggers.
@optional @param trigger_by [Twilio::UsageTriggerEnumTriggerField?] The trigger field of the UsageTriggers to read. Can be: count, usage, or price as described in the UsageRecords documentation.
@optional @param usage_category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageTriggers to read. Must be a supported usage categories.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return nil
Retrieve a list of usage-triggers belonging to the account used to make the request
@required @param account_sid [String?] The SID of the Account that created the UsageTrigger resources to read.
@optional @param recurring [Twilio::UsageTriggerEnumRecurring?] The frequency of recurring UsageTriggers to read. Can be: daily, monthly, or yearly to read recurring UsageTriggers. An empty value or a value of alltime reads non-recurring UsageTriggers.
@optional @param trigger_by [Twilio::UsageTriggerEnumTriggerField?] The trigger field of the UsageTriggers to read. Can be: count, usage, or price as described in the UsageRecords documentation.
@optional @param usage_category [Twilio::UsageRecordEnumCategory?] The usage category of the UsageTriggers to read. Must be a supported usage categories.
@optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000.
@return [Tuple(Twilio::ListUsageTriggerResponse, Integer, Hash)] Twilio::ListUsageTriggerResponse, response status code and response headers
Update an instance of a usage trigger
@required @param account_sid [String?] The SID of the Account that created the UsageTrigger resources to update.
@required @param sid [String?] The Twilio-provided string that uniquely identifies the UsageTrigger resource to update.
@optional @param callback_method [Twilio::HttpMethod?]
@optional @param callback_url [String?] The URL we should call using callback_method when the trigger fires.
@optional @param friendly_name [String?] A descriptive string that you create to describe the resource. It can be up to 64 characters long.
@return [Twilio::UsageUsageTrigger]
Update an instance of a usage trigger
@required @param account_sid [String?] The SID of the Account that created the UsageTrigger resources to update.
@required @param sid [String?] The Twilio-provided string that uniquely identifies the UsageTrigger resource to update.
@optional @param callback_method [Twilio::HttpMethod?]
@optional @param callback_url [String?] The URL we should call using callback_method when the trigger fires.
@optional @param friendly_name [String?] A descriptive string that you create to describe the resource. It can be up to 64 characters long.
@return nil
Update an instance of a usage trigger
@required @param account_sid [String?] The SID of the Account that created the UsageTrigger resources to update.
@required @param sid [String?] The Twilio-provided string that uniquely identifies the UsageTrigger resource to update.
@optional @param callback_method [Twilio::HttpMethod?]
@optional @param callback_url [String?] The URL we should call using callback_method when the trigger fires.
@optional @param friendly_name [String?] A descriptive string that you create to describe the resource. It can be up to 64 characters long.
@return [Tuple(Twilio::UsageUsageTrigger, Integer, Hash)] Twilio::UsageUsageTrigger, response status code and response headers