Skip to content

Latest commit

 

History

History
141 lines (77 loc) · 5.63 KB

Api20100401OutgoingCallerIdApi.md

File metadata and controls

141 lines (77 loc) · 5.63 KB

\Api20100401OutgoingCallerIdApi

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

Method HTTP request Description
delete_outgoing_caller_id DELETE /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json
fetch_outgoing_caller_id GET /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json
list_outgoing_caller_id GET /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json
update_outgoing_caller_id POST /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json

delete_outgoing_caller_id

delete_outgoing_caller_id(account_sid, sid)

Delete the caller-id specified from the account

Parameters

Name Type Description Required Notes
account_sid String The SID of the Account that created the OutgoingCallerId resources to delete. [required]
sid String The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to delete. [required]

Return type

(empty response body)

Authorization

accountSid_authToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

fetch_outgoing_caller_id

crate::models::ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId fetch_outgoing_caller_id(account_sid, sid)

Fetch an outgoing-caller-id belonging to the account used to make the request

Parameters

Name Type Description Required Notes
account_sid String The SID of the Account that created the OutgoingCallerId resource to fetch. [required]
sid String The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to fetch. [required]

Return type

crate::models::ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId

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]

list_outgoing_caller_id

crate::models::ListOutgoingCallerIdResponse list_outgoing_caller_id(account_sid, phone_number, friendly_name, page_size, page, page_token)

Retrieve a list of outgoing-caller-ids belonging to the account used to make the request

Parameters

Name Type Description Required Notes
account_sid String The SID of the Account that created the OutgoingCallerId resources to read. [required]
phone_number Option<String> The phone number of the OutgoingCallerId resources to read.
friendly_name Option<String> The string that identifies the OutgoingCallerId resources to read.
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::ListOutgoingCallerIdResponse

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]

update_outgoing_caller_id

crate::models::ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId update_outgoing_caller_id(account_sid, sid, friendly_name)

Updates the caller-id

Parameters

Name Type Description Required Notes
account_sid String The SID of the Account that created the OutgoingCallerId resources to update. [required]
sid String The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to update. [required]
friendly_name Option<String> A descriptive string that you create to describe the resource. It can be up to 64 characters long.

Return type

crate::models::ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId

Authorization

accountSid_authToken

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

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