All URIs are relative to https://api.twilio.com
Method | HTTP request | Description |
---|---|---|
create_queue | POST /2010-04-01/Accounts/{AccountSid}/Queues.json | |
delete_queue | DELETE /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | |
fetch_queue | GET /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | |
list_queue | GET /2010-04-01/Accounts/{AccountSid}/Queues.json | |
update_queue | POST /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json |
crate::models::ApiPeriodV2010PeriodAccountPeriodQueue create_queue(account_sid, friendly_name, max_size)
Create a queue
Name | Type | Description | Required | Notes |
---|---|---|---|---|
account_sid | String | The SID of the Account that will create the resource. | [required] | |
friendly_name | String | A descriptive string that you created to describe this resource. It can be up to 64 characters long. | [required] | |
max_size | Option<i32> | The maximum number of calls allowed to be in the queue. The default is 1000. The maximum is 5000. |
crate::models::ApiPeriodV2010PeriodAccountPeriodQueue
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_queue(account_sid, sid)
Remove an empty queue
Name | Type | Description | Required | Notes |
---|---|---|---|---|
account_sid | String | The SID of the Account that created the Queue resource to delete. | [required] | |
sid | String | The Twilio-provided string that uniquely identifies the Queue resource to delete | [required] |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::ApiPeriodV2010PeriodAccountPeriodQueue fetch_queue(account_sid, sid)
Fetch an instance of a queue identified by the QueueSid
Name | Type | Description | Required | Notes |
---|---|---|---|---|
account_sid | String | The SID of the Account that created the Queue resource to fetch. | [required] | |
sid | String | The Twilio-provided string that uniquely identifies the Queue resource to fetch | [required] |
crate::models::ApiPeriodV2010PeriodAccountPeriodQueue
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::ListQueueResponse list_queue(account_sid, page_size, page, page_token)
Retrieve a list of queues belonging to the account used to make the request
Name | Type | Description | Required | Notes |
---|---|---|---|---|
account_sid | String | The SID of the Account that created the Queue resources to read. | [required] | |
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. |
crate::models::ListQueueResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::ApiPeriodV2010PeriodAccountPeriodQueue update_queue(account_sid, sid, friendly_name, max_size)
Update the queue with the new parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
account_sid | String | The SID of the Account that created the Queue resource to update. | [required] | |
sid | String | The Twilio-provided string that uniquely identifies the Queue resource to update | [required] | |
friendly_name | Option<String> | A descriptive string that you created to describe this resource. It can be up to 64 characters long. | ||
max_size | Option<i32> | The maximum number of calls allowed to be in the queue. The default is 1000. The maximum is 5000. |
crate::models::ApiPeriodV2010PeriodAccountPeriodQueue
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]