All URIs are relative to https://api.twilio.com
Method | HTTP request | Description |
---|---|---|
create_incoming_phone_number_assigned_add_on | POST /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json | |
delete_incoming_phone_number_assigned_add_on | DELETE /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json | |
fetch_incoming_phone_number_assigned_add_on | GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json | |
list_incoming_phone_number_assigned_add_on | GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json |
crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn create_incoming_phone_number_assigned_add_on(account_sid, resource_sid, installed_add_on_sid)
Assign an Add-on installation to the Number specified.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
account_sid | String | The SID of the Account that will create the resource. | [required] | |
resource_sid | String | The SID of the Phone Number to assign the Add-on. | [required] | |
installed_add_on_sid | String | The SID that identifies the Add-on installation. | [required] |
- 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_incoming_phone_number_assigned_add_on(account_sid, resource_sid, sid)
Remove the assignment of an Add-on installation from the Number specified.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
account_sid | String | The SID of the Account that created the resources to delete. | [required] | |
resource_sid | String | The SID of the Phone Number to which the Add-on is assigned. | [required] | |
sid | String | The Twilio-provided string that uniquely identifies the 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::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn fetch_incoming_phone_number_assigned_add_on(account_sid, resource_sid, sid)
Fetch an instance of an Add-on installation currently assigned to this Number.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
account_sid | String | The SID of the Account that created the resource to fetch. | [required] | |
resource_sid | String | The SID of the Phone Number to which the Add-on is assigned. | [required] | |
sid | String | The Twilio-provided string that uniquely identifies the resource to fetch. | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::ListIncomingPhoneNumberAssignedAddOnResponse list_incoming_phone_number_assigned_add_on(account_sid, resource_sid, page_size, page, page_token)
Retrieve a list of Add-on installations currently assigned to this Number.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
account_sid | String | The SID of the Account that created the resources to read. | [required] | |
resource_sid | String | The SID of the Phone Number to which the Add-on is assigned. | [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::ListIncomingPhoneNumberAssignedAddOnResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]