class Twilio::IncomingPhoneNumbersApi

Defined in:

twilio/api/incoming_phone_numbers_api.cr

Constant Summary

CREATE_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MAX_LENGTH_FOR_ACCOUNT_SID = 34
CREATE_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MAX_LENGTH_FOR_INSTALLED_ADD_ON_SID = 34
CREATE_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MAX_LENGTH_FOR_RESOURCE_SID = 34
CREATE_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MIN_LENGTH_FOR_ACCOUNT_SID = 34
CREATE_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MIN_LENGTH_FOR_INSTALLED_ADD_ON_SID = 34
CREATE_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MIN_LENGTH_FOR_RESOURCE_SID = 34
CREATE_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_PATTERN_FOR_INSTALLED_ADD_ON_SID = /^XE[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_PATTERN_FOR_RESOURCE_SID = /^PN[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_LOCAL_MAX_LENGTH_FOR_ACCOUNT_SID = 34
CREATE_INCOMING_PHONE_NUMBER_LOCAL_MAX_LENGTH_FOR_ADDRESS_SID = 34
CREATE_INCOMING_PHONE_NUMBER_LOCAL_MAX_LENGTH_FOR_BUNDLE_SID = 34
CREATE_INCOMING_PHONE_NUMBER_LOCAL_MAX_LENGTH_FOR_EMERGENCY_ADDRESS_SID = 34
CREATE_INCOMING_PHONE_NUMBER_LOCAL_MAX_LENGTH_FOR_IDENTITY_SID = 34
CREATE_INCOMING_PHONE_NUMBER_LOCAL_MAX_LENGTH_FOR_SMS_APPLICATION_SID = 34
CREATE_INCOMING_PHONE_NUMBER_LOCAL_MAX_LENGTH_FOR_TRUNK_SID = 34
CREATE_INCOMING_PHONE_NUMBER_LOCAL_MAX_LENGTH_FOR_VOICE_APPLICATION_SID = 34
CREATE_INCOMING_PHONE_NUMBER_LOCAL_MIN_LENGTH_FOR_ACCOUNT_SID = 34
CREATE_INCOMING_PHONE_NUMBER_LOCAL_MIN_LENGTH_FOR_ADDRESS_SID = 34
CREATE_INCOMING_PHONE_NUMBER_LOCAL_MIN_LENGTH_FOR_BUNDLE_SID = 34
CREATE_INCOMING_PHONE_NUMBER_LOCAL_MIN_LENGTH_FOR_EMERGENCY_ADDRESS_SID = 34
CREATE_INCOMING_PHONE_NUMBER_LOCAL_MIN_LENGTH_FOR_IDENTITY_SID = 34
CREATE_INCOMING_PHONE_NUMBER_LOCAL_MIN_LENGTH_FOR_SMS_APPLICATION_SID = 34
CREATE_INCOMING_PHONE_NUMBER_LOCAL_MIN_LENGTH_FOR_TRUNK_SID = 34
CREATE_INCOMING_PHONE_NUMBER_LOCAL_MIN_LENGTH_FOR_VOICE_APPLICATION_SID = 34
CREATE_INCOMING_PHONE_NUMBER_LOCAL_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_LOCAL_PATTERN_FOR_ADDRESS_SID = /^AD[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_LOCAL_PATTERN_FOR_BUNDLE_SID = /^BU[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_LOCAL_PATTERN_FOR_EMERGENCY_ADDRESS_SID = /^AD[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_LOCAL_PATTERN_FOR_IDENTITY_SID = /^RI[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_LOCAL_PATTERN_FOR_SMS_APPLICATION_SID = /^AP[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_LOCAL_PATTERN_FOR_TRUNK_SID = /^TK[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_LOCAL_PATTERN_FOR_VOICE_APPLICATION_SID = /^AP[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_ACCOUNT_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_ADDRESS_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_BUNDLE_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_EMERGENCY_ADDRESS_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_IDENTITY_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_SMS_APPLICATION_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_TRUNK_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_VOICE_APPLICATION_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_ACCOUNT_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_ADDRESS_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_BUNDLE_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_EMERGENCY_ADDRESS_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_IDENTITY_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_SMS_APPLICATION_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_TRUNK_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_VOICE_APPLICATION_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MOBILE_MAX_LENGTH_FOR_ACCOUNT_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MOBILE_MAX_LENGTH_FOR_ADDRESS_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MOBILE_MAX_LENGTH_FOR_BUNDLE_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MOBILE_MAX_LENGTH_FOR_EMERGENCY_ADDRESS_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MOBILE_MAX_LENGTH_FOR_IDENTITY_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MOBILE_MAX_LENGTH_FOR_SMS_APPLICATION_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MOBILE_MAX_LENGTH_FOR_TRUNK_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MOBILE_MAX_LENGTH_FOR_VOICE_APPLICATION_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MOBILE_MIN_LENGTH_FOR_ACCOUNT_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MOBILE_MIN_LENGTH_FOR_ADDRESS_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MOBILE_MIN_LENGTH_FOR_BUNDLE_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MOBILE_MIN_LENGTH_FOR_EMERGENCY_ADDRESS_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MOBILE_MIN_LENGTH_FOR_IDENTITY_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MOBILE_MIN_LENGTH_FOR_SMS_APPLICATION_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MOBILE_MIN_LENGTH_FOR_TRUNK_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MOBILE_MIN_LENGTH_FOR_VOICE_APPLICATION_SID = 34
CREATE_INCOMING_PHONE_NUMBER_MOBILE_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_MOBILE_PATTERN_FOR_ADDRESS_SID = /^AD[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_MOBILE_PATTERN_FOR_BUNDLE_SID = /^BU[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_MOBILE_PATTERN_FOR_EMERGENCY_ADDRESS_SID = /^AD[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_MOBILE_PATTERN_FOR_IDENTITY_SID = /^RI[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_MOBILE_PATTERN_FOR_SMS_APPLICATION_SID = /^AP[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_MOBILE_PATTERN_FOR_TRUNK_SID = /^TK[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_MOBILE_PATTERN_FOR_VOICE_APPLICATION_SID = /^AP[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_PATTERN_FOR_ADDRESS_SID = /^AD[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_PATTERN_FOR_BUNDLE_SID = /^BU[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_PATTERN_FOR_EMERGENCY_ADDRESS_SID = /^AD[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_PATTERN_FOR_IDENTITY_SID = /^RI[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_PATTERN_FOR_SMS_APPLICATION_SID = /^AP[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_PATTERN_FOR_TRUNK_SID = /^TK[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_PATTERN_FOR_VOICE_APPLICATION_SID = /^AP[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_MAX_LENGTH_FOR_ACCOUNT_SID = 34
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_MAX_LENGTH_FOR_ADDRESS_SID = 34
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_MAX_LENGTH_FOR_BUNDLE_SID = 34
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_MAX_LENGTH_FOR_EMERGENCY_ADDRESS_SID = 34
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_MAX_LENGTH_FOR_IDENTITY_SID = 34
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_MAX_LENGTH_FOR_SMS_APPLICATION_SID = 34
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_MAX_LENGTH_FOR_TRUNK_SID = 34
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_MAX_LENGTH_FOR_VOICE_APPLICATION_SID = 34
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_MIN_LENGTH_FOR_ACCOUNT_SID = 34
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_MIN_LENGTH_FOR_ADDRESS_SID = 34
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_MIN_LENGTH_FOR_BUNDLE_SID = 34
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_MIN_LENGTH_FOR_EMERGENCY_ADDRESS_SID = 34
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_MIN_LENGTH_FOR_IDENTITY_SID = 34
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_MIN_LENGTH_FOR_SMS_APPLICATION_SID = 34
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_MIN_LENGTH_FOR_TRUNK_SID = 34
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_MIN_LENGTH_FOR_VOICE_APPLICATION_SID = 34
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_PATTERN_FOR_ADDRESS_SID = /^AD[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_PATTERN_FOR_BUNDLE_SID = /^BU[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_PATTERN_FOR_EMERGENCY_ADDRESS_SID = /^AD[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_PATTERN_FOR_IDENTITY_SID = /^RI[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_PATTERN_FOR_SMS_APPLICATION_SID = /^AP[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_PATTERN_FOR_TRUNK_SID = /^TK[0-9a-fA-F]{32}$/
CREATE_INCOMING_PHONE_NUMBER_TOLL_FREE_PATTERN_FOR_VOICE_APPLICATION_SID = /^AP[0-9a-fA-F]{32}$/
DELETE_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MAX_LENGTH_FOR_ACCOUNT_SID = 34
DELETE_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MAX_LENGTH_FOR_RESOURCE_SID = 34
DELETE_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MAX_LENGTH_FOR_SID = 34
DELETE_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MIN_LENGTH_FOR_ACCOUNT_SID = 34
DELETE_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MIN_LENGTH_FOR_RESOURCE_SID = 34
DELETE_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MIN_LENGTH_FOR_SID = 34
DELETE_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
DELETE_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_PATTERN_FOR_RESOURCE_SID = /^PN[0-9a-fA-F]{32}$/
DELETE_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_PATTERN_FOR_SID = /^XE[0-9a-fA-F]{32}$/
DELETE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_ACCOUNT_SID = 34
DELETE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_SID = 34
DELETE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_ACCOUNT_SID = 34
DELETE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_SID = 34
DELETE_INCOMING_PHONE_NUMBER_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
DELETE_INCOMING_PHONE_NUMBER_PATTERN_FOR_SID = /^PN[0-9a-fA-F]{32}$/
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_MAX_LENGTH_FOR_ACCOUNT_SID = 34
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_MAX_LENGTH_FOR_ASSIGNED_ADD_ON_SID = 34
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_MAX_LENGTH_FOR_RESOURCE_SID = 34
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_MAX_LENGTH_FOR_SID = 34
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_MIN_LENGTH_FOR_ACCOUNT_SID = 34
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_MIN_LENGTH_FOR_ASSIGNED_ADD_ON_SID = 34
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_MIN_LENGTH_FOR_RESOURCE_SID = 34
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_MIN_LENGTH_FOR_SID = 34
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_PATTERN_FOR_ASSIGNED_ADD_ON_SID = /^XE[0-9a-fA-F]{32}$/
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_PATTERN_FOR_RESOURCE_SID = /^PN[0-9a-fA-F]{32}$/
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_PATTERN_FOR_SID = /^XF[0-9a-fA-F]{32}$/
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MAX_LENGTH_FOR_ACCOUNT_SID = 34
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MAX_LENGTH_FOR_RESOURCE_SID = 34
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MAX_LENGTH_FOR_SID = 34
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MIN_LENGTH_FOR_ACCOUNT_SID = 34
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MIN_LENGTH_FOR_RESOURCE_SID = 34
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MIN_LENGTH_FOR_SID = 34
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_PATTERN_FOR_RESOURCE_SID = /^PN[0-9a-fA-F]{32}$/
FETCH_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_PATTERN_FOR_SID = /^XE[0-9a-fA-F]{32}$/
FETCH_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_ACCOUNT_SID = 34
FETCH_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_SID = 34
FETCH_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_ACCOUNT_SID = 34
FETCH_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_SID = 34
FETCH_INCOMING_PHONE_NUMBER_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
FETCH_INCOMING_PHONE_NUMBER_PATTERN_FOR_SID = /^PN[0-9a-fA-F]{32}$/
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_MAX_FOR_PAGE_SIZE = Int32.new("1000")
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_MAX_LENGTH_FOR_ACCOUNT_SID = 34
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_MAX_LENGTH_FOR_ASSIGNED_ADD_ON_SID = 34
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_MAX_LENGTH_FOR_RESOURCE_SID = 34
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_MIN_FOR_PAGE_SIZE = Int32.new("1")
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_MIN_LENGTH_FOR_ACCOUNT_SID = 34
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_MIN_LENGTH_FOR_ASSIGNED_ADD_ON_SID = 34
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_MIN_LENGTH_FOR_RESOURCE_SID = 34
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_PATTERN_FOR_ASSIGNED_ADD_ON_SID = /^XE[0-9a-fA-F]{32}$/
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_EXTENSION_PATTERN_FOR_RESOURCE_SID = /^PN[0-9a-fA-F]{32}$/
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MAX_FOR_PAGE_SIZE = Int32.new("1000")
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MAX_LENGTH_FOR_ACCOUNT_SID = 34
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MAX_LENGTH_FOR_RESOURCE_SID = 34
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MIN_FOR_PAGE_SIZE = Int32.new("1")
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MIN_LENGTH_FOR_ACCOUNT_SID = 34
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_MIN_LENGTH_FOR_RESOURCE_SID = 34
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
LIST_INCOMING_PHONE_NUMBER_ASSIGNED_ADD_ON_PATTERN_FOR_RESOURCE_SID = /^PN[0-9a-fA-F]{32}$/
LIST_INCOMING_PHONE_NUMBER_LOCAL_MAX_FOR_PAGE_SIZE = Int32.new("1000")
LIST_INCOMING_PHONE_NUMBER_LOCAL_MAX_LENGTH_FOR_ACCOUNT_SID = 34
LIST_INCOMING_PHONE_NUMBER_LOCAL_MIN_FOR_PAGE_SIZE = Int32.new("1")
LIST_INCOMING_PHONE_NUMBER_LOCAL_MIN_LENGTH_FOR_ACCOUNT_SID = 34
LIST_INCOMING_PHONE_NUMBER_LOCAL_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
LIST_INCOMING_PHONE_NUMBER_MAX_FOR_PAGE_SIZE = Int32.new("1000")
LIST_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_ACCOUNT_SID = 34
LIST_INCOMING_PHONE_NUMBER_MIN_FOR_PAGE_SIZE = Int32.new("1")
LIST_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_ACCOUNT_SID = 34
LIST_INCOMING_PHONE_NUMBER_MOBILE_MAX_FOR_PAGE_SIZE = Int32.new("1000")
LIST_INCOMING_PHONE_NUMBER_MOBILE_MAX_LENGTH_FOR_ACCOUNT_SID = 34
LIST_INCOMING_PHONE_NUMBER_MOBILE_MIN_FOR_PAGE_SIZE = Int32.new("1")
LIST_INCOMING_PHONE_NUMBER_MOBILE_MIN_LENGTH_FOR_ACCOUNT_SID = 34
LIST_INCOMING_PHONE_NUMBER_MOBILE_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
LIST_INCOMING_PHONE_NUMBER_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
LIST_INCOMING_PHONE_NUMBER_TOLL_FREE_MAX_FOR_PAGE_SIZE = Int32.new("1000")
LIST_INCOMING_PHONE_NUMBER_TOLL_FREE_MAX_LENGTH_FOR_ACCOUNT_SID = 34
LIST_INCOMING_PHONE_NUMBER_TOLL_FREE_MIN_FOR_PAGE_SIZE = Int32.new("1")
LIST_INCOMING_PHONE_NUMBER_TOLL_FREE_MIN_LENGTH_FOR_ACCOUNT_SID = 34
LIST_INCOMING_PHONE_NUMBER_TOLL_FREE_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
UPDATE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_ACCOUNT_SID = 34
UPDATE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_ACCOUNT_SID2 = 34
UPDATE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_ADDRESS_SID = 34
UPDATE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_BUNDLE_SID = 34
UPDATE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_EMERGENCY_ADDRESS_SID = 34
UPDATE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_IDENTITY_SID = 34
UPDATE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_SID = 34
UPDATE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_SMS_APPLICATION_SID = 34
UPDATE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_TRUNK_SID = 34
UPDATE_INCOMING_PHONE_NUMBER_MAX_LENGTH_FOR_VOICE_APPLICATION_SID = 34
UPDATE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_ACCOUNT_SID = 34
UPDATE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_ACCOUNT_SID2 = 34
UPDATE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_ADDRESS_SID = 34
UPDATE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_BUNDLE_SID = 34
UPDATE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_EMERGENCY_ADDRESS_SID = 34
UPDATE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_IDENTITY_SID = 34
UPDATE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_SID = 34
UPDATE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_SMS_APPLICATION_SID = 34
UPDATE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_TRUNK_SID = 34
UPDATE_INCOMING_PHONE_NUMBER_MIN_LENGTH_FOR_VOICE_APPLICATION_SID = 34
UPDATE_INCOMING_PHONE_NUMBER_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
UPDATE_INCOMING_PHONE_NUMBER_PATTERN_FOR_ACCOUNT_SID2 = /^AC[0-9a-fA-F]{32}$/
UPDATE_INCOMING_PHONE_NUMBER_PATTERN_FOR_ADDRESS_SID = /^AD[0-9a-fA-F]{32}$/
UPDATE_INCOMING_PHONE_NUMBER_PATTERN_FOR_BUNDLE_SID = /^BU[0-9a-fA-F]{32}$/
UPDATE_INCOMING_PHONE_NUMBER_PATTERN_FOR_EMERGENCY_ADDRESS_SID = /^AD[0-9a-fA-F]{32}$/
UPDATE_INCOMING_PHONE_NUMBER_PATTERN_FOR_IDENTITY_SID = /^RI[0-9a-fA-F]{32}$/
UPDATE_INCOMING_PHONE_NUMBER_PATTERN_FOR_SID = /^PN[0-9a-fA-F]{32}$/
UPDATE_INCOMING_PHONE_NUMBER_PATTERN_FOR_SMS_APPLICATION_SID = /^AP[0-9a-fA-F]{32}$/
UPDATE_INCOMING_PHONE_NUMBER_PATTERN_FOR_TRUNK_SID = /^TK[0-9a-fA-F]{32}$/
UPDATE_INCOMING_PHONE_NUMBER_PATTERN_FOR_VOICE_APPLICATION_SID = /^AP[0-9a-fA-F]{32}$/

Constructors

Instance Method Summary

Constructor Detail

def self.new(api_client : Twilio::ApiClient = ApiClient.default) #

[View source]

Instance Method Detail

def account_sid : String #

[View source]
def account_sid=(account_sid : String) #

[View source]
def api_client : ApiClient #

[View source]
def api_client=(api_client : ApiClient) #

[View source]
def build_api_request_for_create_incoming_phone_number(*, account_sid : String | Nil = @account_sid, address_sid : String | Nil = nil, api_version : String | Nil = nil, area_code : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, phone_number : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_create_incoming_phone_number_assigned_add_on(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, installed_add_on_sid : String | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_create_incoming_phone_number_local(*, account_sid : String | Nil = @account_sid, phone_number : String | Nil = nil, address_sid : String | Nil = nil, api_version : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_create_incoming_phone_number_mobile(*, account_sid : String | Nil = @account_sid, phone_number : String | Nil = nil, address_sid : String | Nil = nil, api_version : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_create_incoming_phone_number_toll_free(*, account_sid : String | Nil = @account_sid, phone_number : String | Nil = nil, address_sid : String | Nil = nil, api_version : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_delete_incoming_phone_number(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_delete_incoming_phone_number_assigned_add_on(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, sid : String | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_fetch_incoming_phone_number(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_fetch_incoming_phone_number_assigned_add_on(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, sid : String | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_fetch_incoming_phone_number_assigned_add_on_extension(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, assigned_add_on_sid : String | Nil = nil, sid : String | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_list_incoming_phone_number(*, account_sid : String | Nil = @account_sid, beta : Bool | Nil = nil, friendly_name : String | Nil = nil, phone_number : String | Nil = nil, origin : String | Nil = nil, page_size : Int32 | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_list_incoming_phone_number_assigned_add_on(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, page_size : Int32 | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_list_incoming_phone_number_assigned_add_on_extension(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, assigned_add_on_sid : String | Nil = nil, page_size : Int32 | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_list_incoming_phone_number_local(*, account_sid : String | Nil = @account_sid, beta : Bool | Nil = nil, friendly_name : String | Nil = nil, phone_number : String | Nil = nil, origin : String | Nil = nil, page_size : Int32 | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_list_incoming_phone_number_mobile(*, account_sid : String | Nil = @account_sid, beta : Bool | Nil = nil, friendly_name : String | Nil = nil, phone_number : String | Nil = nil, origin : String | Nil = nil, page_size : Int32 | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_list_incoming_phone_number_toll_free(*, account_sid : String | Nil = @account_sid, beta : Bool | Nil = nil, friendly_name : String | Nil = nil, phone_number : String | Nil = nil, origin : String | Nil = nil, page_size : Int32 | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_update_incoming_phone_number(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, account_sid2 : String | Nil = @account_sid, address_sid : String | Nil = nil, api_version : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def client_side_validation?(*args, **options) #

[View source]
def client_side_validation?(*args, **options, &) #

[View source]
def create_incoming_phone_number(*, account_sid : String | Nil = @account_sid, address_sid : String | Nil = nil, api_version : String | Nil = nil, area_code : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, phone_number : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil) : Twilio::IncomingPhoneNumber #

Purchase a phone-number for the account. @required @param account_sid [String?] The SID of the Account that will create the resource. @optional @param address_sid [String?] The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. @optional @param api_version [String?] The API version to use for incoming calls made to the new phone number. The default is 2010-04-01. @optional @param area_code [String?] The desired area code for your new incoming phone number. Can be any three-digit, US or Canada area code. We will provision an available phone number within this area code for you. You must provide an area_code or a phone_number. (US and Canada only). @optional @param bundle_sid [String?] The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. @optional @param emergency_address_sid [String?] The SID of the emergency address configuration to use for emergency calling from the new phone number. @optional @param emergency_status [Twilio::IncomingPhoneNumberEnumEmergencyStatus?] @optional @param friendly_name [String?] A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the new phone number. @optional @param identity_sid [String?] The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. @optional @param phone_number [String?] The phone number to purchase specified in E.164 format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. @optional @param sms_application_sid [String?] The SID of the application that should handle SMS messages sent to the new phone number. If an sms_application_sid is present, we ignore all of the sms_*_url urls and use those set on the application. @optional @param sms_fallback_method [Twilio::HttpMethod?] @optional @param sms_fallback_url [String?] The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url. @optional @param sms_method [Twilio::HttpMethod?] @optional @param sms_url [String?] The URL we should call when the new phone number receives an incoming SMS message. @optional @param status_callback [String?] The URL we should call using the status_callback_method to send status information to your application. @optional @param status_callback_method [Twilio::HttpMethod?] @optional @param trunk_sid [String?] The SID of the Trunk we should use to handle calls to the new phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa. @optional @param voice_application_sid [String?] The SID of the application we should use to handle calls to the new phone number. If a voice_application_sid is present, we ignore all of the voice urls and use only those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa. @optional @param voice_caller_id_lookup [Bool?] Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false. @optional @param voice_fallback_method [Twilio::HttpMethod?] @optional @param voice_fallback_url [String?] The URL that we should call when an error occurs retrieving or executing the TwiML requested by url. @optional @param voice_method [Twilio::HttpMethod?] @optional @param voice_receive_mode [Twilio::IncomingPhoneNumberEnumVoiceReceiveMode?] @optional @param voice_url [String?] The URL that we should call to answer a call to the new phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set. @return [Twilio::IncomingPhoneNumber]


[View source]
def create_incoming_phone_number(*, account_sid : String | Nil = @account_sid, address_sid : String | Nil = nil, api_version : String | Nil = nil, area_code : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, phone_number : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil, &block : Crest::Response -> ) : Nil #

Purchase a phone-number for the account. @required @param account_sid [String?] The SID of the Account that will create the resource. @optional @param address_sid [String?] The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. @optional @param api_version [String?] The API version to use for incoming calls made to the new phone number. The default is 2010-04-01. @optional @param area_code [String?] The desired area code for your new incoming phone number. Can be any three-digit, US or Canada area code. We will provision an available phone number within this area code for you. You must provide an area_code or a phone_number. (US and Canada only). @optional @param bundle_sid [String?] The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. @optional @param emergency_address_sid [String?] The SID of the emergency address configuration to use for emergency calling from the new phone number. @optional @param emergency_status [Twilio::IncomingPhoneNumberEnumEmergencyStatus?] @optional @param friendly_name [String?] A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the new phone number. @optional @param identity_sid [String?] The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. @optional @param phone_number [String?] The phone number to purchase specified in E.164 format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. @optional @param sms_application_sid [String?] The SID of the application that should handle SMS messages sent to the new phone number. If an sms_application_sid is present, we ignore all of the sms_*_url urls and use those set on the application. @optional @param sms_fallback_method [Twilio::HttpMethod?] @optional @param sms_fallback_url [String?] The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url. @optional @param sms_method [Twilio::HttpMethod?] @optional @param sms_url [String?] The URL we should call when the new phone number receives an incoming SMS message. @optional @param status_callback [String?] The URL we should call using the status_callback_method to send status information to your application. @optional @param status_callback_method [Twilio::HttpMethod?] @optional @param trunk_sid [String?] The SID of the Trunk we should use to handle calls to the new phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa. @optional @param voice_application_sid [String?] The SID of the application we should use to handle calls to the new phone number. If a voice_application_sid is present, we ignore all of the voice urls and use only those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa. @optional @param voice_caller_id_lookup [Bool?] Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false. @optional @param voice_fallback_method [Twilio::HttpMethod?] @optional @param voice_fallback_url [String?] The URL that we should call when an error occurs retrieving or executing the TwiML requested by url. @optional @param voice_method [Twilio::HttpMethod?] @optional @param voice_receive_mode [Twilio::IncomingPhoneNumberEnumVoiceReceiveMode?] @optional @param voice_url [String?] The URL that we should call to answer a call to the new phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set. @return nil


[View source]
def create_incoming_phone_number_assigned_add_on(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, installed_add_on_sid : String | Nil = nil) : Twilio::IncomingPhoneNumberIncomingPhoneNumberAssignedAddOn #

Assign an Add-on installation to the Number specified. @required @param account_sid [String?] The SID of the Account that will create the resource. @required @param resource_sid [String?] The SID of the Phone Number to assign the Add-on. @required @param installed_add_on_sid [String?] The SID that identifies the Add-on installation. @return [Twilio::IncomingPhoneNumberIncomingPhoneNumberAssignedAddOn]


[View source]
def create_incoming_phone_number_assigned_add_on(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, installed_add_on_sid : String | Nil = nil, &block : Crest::Response -> ) : Nil #

Assign an Add-on installation to the Number specified. @required @param account_sid [String?] The SID of the Account that will create the resource. @required @param resource_sid [String?] The SID of the Phone Number to assign the Add-on. @required @param installed_add_on_sid [String?] The SID that identifies the Add-on installation. @return nil


[View source]
def create_incoming_phone_number_assigned_add_on_with_http_info(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, installed_add_on_sid : String | Nil = nil) : Tuple(Twilio::IncomingPhoneNumberIncomingPhoneNumberAssignedAddOn, Int32, Hash(String, Array(String) | String)) #

Assign an Add-on installation to the Number specified. @required @param account_sid [String?] The SID of the Account that will create the resource. @required @param resource_sid [String?] The SID of the Phone Number to assign the Add-on. @required @param installed_add_on_sid [String?] The SID that identifies the Add-on installation. @return [Tuple(Twilio::IncomingPhoneNumberIncomingPhoneNumberAssignedAddOn, Integer, Hash)] Twilio::IncomingPhoneNumberIncomingPhoneNumberAssignedAddOn, response status code and response headers


[View source]
def create_incoming_phone_number_local(*, account_sid : String | Nil = @account_sid, phone_number : String | Nil = nil, address_sid : String | Nil = nil, api_version : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil) : Twilio::IncomingPhoneNumberIncomingPhoneNumberLocal #

@required @param account_sid [String?] The SID of the Account that will create the resource. @required @param phone_number [String?] The phone number to purchase specified in E.164 format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. @optional @param address_sid [String?] The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. @optional @param api_version [String?] The API version to use for incoming calls made to the new phone number. The default is 2010-04-01. @optional @param bundle_sid [String?] The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. @optional @param emergency_address_sid [String?] The SID of the emergency address configuration to use for emergency calling from the new phone number. @optional @param emergency_status [Twilio::IncomingPhoneNumberEnumEmergencyStatus?] @optional @param friendly_name [String?] A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number. @optional @param identity_sid [String?] The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. @optional @param sms_application_sid [String?] The SID of the application that should handle SMS messages sent to the new phone number. If an sms_application_sid is present, we ignore all of the sms_*_url urls and use those set on the application. @optional @param sms_fallback_method [Twilio::HttpMethod?] @optional @param sms_fallback_url [String?] The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url. @optional @param sms_method [Twilio::HttpMethod?] @optional @param sms_url [String?] The URL we should call when the new phone number receives an incoming SMS message. @optional @param status_callback [String?] The URL we should call using the status_callback_method to send status information to your application. @optional @param status_callback_method [Twilio::HttpMethod?] @optional @param trunk_sid [String?] The SID of the Trunk we should use to handle calls to the new phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa. @optional @param voice_application_sid [String?] The SID of the application we should use to handle calls to the new phone number. If a voice_application_sid is present, we ignore all of the voice urls and use only those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa. @optional @param voice_caller_id_lookup [Bool?] Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false. @optional @param voice_fallback_method [Twilio::HttpMethod?] @optional @param voice_fallback_url [String?] The URL that we should call when an error occurs retrieving or executing the TwiML requested by url. @optional @param voice_method [Twilio::HttpMethod?] @optional @param voice_receive_mode [Twilio::IncomingPhoneNumberEnumVoiceReceiveMode?] @optional @param voice_url [String?] The URL that we should call to answer a call to the new phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set. @return [Twilio::IncomingPhoneNumberIncomingPhoneNumberLocal]


[View source]
def create_incoming_phone_number_local(*, account_sid : String | Nil = @account_sid, phone_number : String | Nil = nil, address_sid : String | Nil = nil, api_version : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil, &block : Crest::Response -> ) : Nil #

@required @param account_sid [String?] The SID of the Account that will create the resource. @required @param phone_number [String?] The phone number to purchase specified in E.164 format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. @optional @param address_sid [String?] The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. @optional @param api_version [String?] The API version to use for incoming calls made to the new phone number. The default is 2010-04-01. @optional @param bundle_sid [String?] The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. @optional @param emergency_address_sid [String?] The SID of the emergency address configuration to use for emergency calling from the new phone number. @optional @param emergency_status [Twilio::IncomingPhoneNumberEnumEmergencyStatus?] @optional @param friendly_name [String?] A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number. @optional @param identity_sid [String?] The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. @optional @param sms_application_sid [String?] The SID of the application that should handle SMS messages sent to the new phone number. If an sms_application_sid is present, we ignore all of the sms_*_url urls and use those set on the application. @optional @param sms_fallback_method [Twilio::HttpMethod?] @optional @param sms_fallback_url [String?] The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url. @optional @param sms_method [Twilio::HttpMethod?] @optional @param sms_url [String?] The URL we should call when the new phone number receives an incoming SMS message. @optional @param status_callback [String?] The URL we should call using the status_callback_method to send status information to your application. @optional @param status_callback_method [Twilio::HttpMethod?] @optional @param trunk_sid [String?] The SID of the Trunk we should use to handle calls to the new phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa. @optional @param voice_application_sid [String?] The SID of the application we should use to handle calls to the new phone number. If a voice_application_sid is present, we ignore all of the voice urls and use only those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa. @optional @param voice_caller_id_lookup [Bool?] Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false. @optional @param voice_fallback_method [Twilio::HttpMethod?] @optional @param voice_fallback_url [String?] The URL that we should call when an error occurs retrieving or executing the TwiML requested by url. @optional @param voice_method [Twilio::HttpMethod?] @optional @param voice_receive_mode [Twilio::IncomingPhoneNumberEnumVoiceReceiveMode?] @optional @param voice_url [String?] The URL that we should call to answer a call to the new phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set. @return nil


[View source]
def create_incoming_phone_number_local_with_http_info(*, account_sid : String | Nil = @account_sid, phone_number : String | Nil = nil, address_sid : String | Nil = nil, api_version : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil) : Tuple(Twilio::IncomingPhoneNumberIncomingPhoneNumberLocal, Int32, Hash(String, Array(String) | String)) #

@required @param account_sid [String?] The SID of the Account that will create the resource. @required @param phone_number [String?] The phone number to purchase specified in E.164 format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. @optional @param address_sid [String?] The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. @optional @param api_version [String?] The API version to use for incoming calls made to the new phone number. The default is 2010-04-01. @optional @param bundle_sid [String?] The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. @optional @param emergency_address_sid [String?] The SID of the emergency address configuration to use for emergency calling from the new phone number. @optional @param emergency_status [Twilio::IncomingPhoneNumberEnumEmergencyStatus?] @optional @param friendly_name [String?] A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number. @optional @param identity_sid [String?] The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. @optional @param sms_application_sid [String?] The SID of the application that should handle SMS messages sent to the new phone number. If an sms_application_sid is present, we ignore all of the sms_*_url urls and use those set on the application. @optional @param sms_fallback_method [Twilio::HttpMethod?] @optional @param sms_fallback_url [String?] The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url. @optional @param sms_method [Twilio::HttpMethod?] @optional @param sms_url [String?] The URL we should call when the new phone number receives an incoming SMS message. @optional @param status_callback [String?] The URL we should call using the status_callback_method to send status information to your application. @optional @param status_callback_method [Twilio::HttpMethod?] @optional @param trunk_sid [String?] The SID of the Trunk we should use to handle calls to the new phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa. @optional @param voice_application_sid [String?] The SID of the application we should use to handle calls to the new phone number. If a voice_application_sid is present, we ignore all of the voice urls and use only those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa. @optional @param voice_caller_id_lookup [Bool?] Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false. @optional @param voice_fallback_method [Twilio::HttpMethod?] @optional @param voice_fallback_url [String?] The URL that we should call when an error occurs retrieving or executing the TwiML requested by url. @optional @param voice_method [Twilio::HttpMethod?] @optional @param voice_receive_mode [Twilio::IncomingPhoneNumberEnumVoiceReceiveMode?] @optional @param voice_url [String?] The URL that we should call to answer a call to the new phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set. @return [Tuple(Twilio::IncomingPhoneNumberIncomingPhoneNumberLocal, Integer, Hash)] Twilio::IncomingPhoneNumberIncomingPhoneNumberLocal, response status code and response headers


[View source]
def create_incoming_phone_number_mobile(*, account_sid : String | Nil = @account_sid, phone_number : String | Nil = nil, address_sid : String | Nil = nil, api_version : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil) : Twilio::IncomingPhoneNumber #

@required @param account_sid [String?] The SID of the Account that will create the resource. @required @param phone_number [String?] The phone number to purchase specified in E.164 format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. @optional @param address_sid [String?] The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. @optional @param api_version [String?] The API version to use for incoming calls made to the new phone number. The default is 2010-04-01. @optional @param bundle_sid [String?] The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. @optional @param emergency_address_sid [String?] The SID of the emergency address configuration to use for emergency calling from the new phone number. @optional @param emergency_status [Twilio::IncomingPhoneNumberEnumEmergencyStatus?] @optional @param friendly_name [String?] A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, the is a formatted version of the phone number. @optional @param identity_sid [String?] The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. @optional @param sms_application_sid [String?] The SID of the application that should handle SMS messages sent to the new phone number. If an sms_application_sid is present, we ignore all of the sms_*_url urls and use those of the application. @optional @param sms_fallback_method [Twilio::HttpMethod?] @optional @param sms_fallback_url [String?] The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url. @optional @param sms_method [Twilio::HttpMethod?] @optional @param sms_url [String?] The URL we should call when the new phone number receives an incoming SMS message. @optional @param status_callback [String?] The URL we should call using the status_callback_method to send status information to your application. @optional @param status_callback_method [Twilio::HttpMethod?] @optional @param trunk_sid [String?] The SID of the Trunk we should use to handle calls to the new phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa. @optional @param voice_application_sid [String?] The SID of the application we should use to handle calls to the new phone number. If a voice_application_sid is present, we ignore all of the voice urls and use only those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa. @optional @param voice_caller_id_lookup [Bool?] Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false. @optional @param voice_fallback_method [Twilio::HttpMethod?] @optional @param voice_fallback_url [String?] The URL that we should call when an error occurs retrieving or executing the TwiML requested by url. @optional @param voice_method [Twilio::HttpMethod?] @optional @param voice_receive_mode [Twilio::IncomingPhoneNumberEnumVoiceReceiveMode?] @optional @param voice_url [String?] The URL that we should call to answer a call to the new phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set. @return [Twilio::IncomingPhoneNumber]


[View source]
def create_incoming_phone_number_mobile(*, account_sid : String | Nil = @account_sid, phone_number : String | Nil = nil, address_sid : String | Nil = nil, api_version : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil, &block : Crest::Response -> ) : Nil #

@required @param account_sid [String?] The SID of the Account that will create the resource. @required @param phone_number [String?] The phone number to purchase specified in E.164 format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. @optional @param address_sid [String?] The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. @optional @param api_version [String?] The API version to use for incoming calls made to the new phone number. The default is 2010-04-01. @optional @param bundle_sid [String?] The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. @optional @param emergency_address_sid [String?] The SID of the emergency address configuration to use for emergency calling from the new phone number. @optional @param emergency_status [Twilio::IncomingPhoneNumberEnumEmergencyStatus?] @optional @param friendly_name [String?] A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, the is a formatted version of the phone number. @optional @param identity_sid [String?] The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. @optional @param sms_application_sid [String?] The SID of the application that should handle SMS messages sent to the new phone number. If an sms_application_sid is present, we ignore all of the sms_*_url urls and use those of the application. @optional @param sms_fallback_method [Twilio::HttpMethod?] @optional @param sms_fallback_url [String?] The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url. @optional @param sms_method [Twilio::HttpMethod?] @optional @param sms_url [String?] The URL we should call when the new phone number receives an incoming SMS message. @optional @param status_callback [String?] The URL we should call using the status_callback_method to send status information to your application. @optional @param status_callback_method [Twilio::HttpMethod?] @optional @param trunk_sid [String?] The SID of the Trunk we should use to handle calls to the new phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa. @optional @param voice_application_sid [String?] The SID of the application we should use to handle calls to the new phone number. If a voice_application_sid is present, we ignore all of the voice urls and use only those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa. @optional @param voice_caller_id_lookup [Bool?] Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false. @optional @param voice_fallback_method [Twilio::HttpMethod?] @optional @param voice_fallback_url [String?] The URL that we should call when an error occurs retrieving or executing the TwiML requested by url. @optional @param voice_method [Twilio::HttpMethod?] @optional @param voice_receive_mode [Twilio::IncomingPhoneNumberEnumVoiceReceiveMode?] @optional @param voice_url [String?] The URL that we should call to answer a call to the new phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set. @return nil


[View source]
def create_incoming_phone_number_mobile_with_http_info(*, account_sid : String | Nil = @account_sid, phone_number : String | Nil = nil, address_sid : String | Nil = nil, api_version : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil) : Tuple(Twilio::IncomingPhoneNumber, Int32, Hash(String, Array(String) | String)) #

@required @param account_sid [String?] The SID of the Account that will create the resource. @required @param phone_number [String?] The phone number to purchase specified in E.164 format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. @optional @param address_sid [String?] The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. @optional @param api_version [String?] The API version to use for incoming calls made to the new phone number. The default is 2010-04-01. @optional @param bundle_sid [String?] The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. @optional @param emergency_address_sid [String?] The SID of the emergency address configuration to use for emergency calling from the new phone number. @optional @param emergency_status [Twilio::IncomingPhoneNumberEnumEmergencyStatus?] @optional @param friendly_name [String?] A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, the is a formatted version of the phone number. @optional @param identity_sid [String?] The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. @optional @param sms_application_sid [String?] The SID of the application that should handle SMS messages sent to the new phone number. If an sms_application_sid is present, we ignore all of the sms_*_url urls and use those of the application. @optional @param sms_fallback_method [Twilio::HttpMethod?] @optional @param sms_fallback_url [String?] The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url. @optional @param sms_method [Twilio::HttpMethod?] @optional @param sms_url [String?] The URL we should call when the new phone number receives an incoming SMS message. @optional @param status_callback [String?] The URL we should call using the status_callback_method to send status information to your application. @optional @param status_callback_method [Twilio::HttpMethod?] @optional @param trunk_sid [String?] The SID of the Trunk we should use to handle calls to the new phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa. @optional @param voice_application_sid [String?] The SID of the application we should use to handle calls to the new phone number. If a voice_application_sid is present, we ignore all of the voice urls and use only those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa. @optional @param voice_caller_id_lookup [Bool?] Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false. @optional @param voice_fallback_method [Twilio::HttpMethod?] @optional @param voice_fallback_url [String?] The URL that we should call when an error occurs retrieving or executing the TwiML requested by url. @optional @param voice_method [Twilio::HttpMethod?] @optional @param voice_receive_mode [Twilio::IncomingPhoneNumberEnumVoiceReceiveMode?] @optional @param voice_url [String?] The URL that we should call to answer a call to the new phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set. @return [Tuple(Twilio::IncomingPhoneNumber, Integer, Hash)] Twilio::IncomingPhoneNumber, response status code and response headers


[View source]
def create_incoming_phone_number_toll_free(*, account_sid : String | Nil = @account_sid, phone_number : String | Nil = nil, address_sid : String | Nil = nil, api_version : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil) : Twilio::IncomingPhoneNumber #

@required @param account_sid [String?] The SID of the Account that will create the resource. @required @param phone_number [String?] The phone number to purchase specified in E.164 format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. @optional @param address_sid [String?] The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. @optional @param api_version [String?] The API version to use for incoming calls made to the new phone number. The default is 2010-04-01. @optional @param bundle_sid [String?] The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. @optional @param emergency_address_sid [String?] The SID of the emergency address configuration to use for emergency calling from the new phone number. @optional @param emergency_status [Twilio::IncomingPhoneNumberEnumEmergencyStatus?] @optional @param friendly_name [String?] A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number. @optional @param identity_sid [String?] The SID of the Identity resource that we should associate with the new phone number. Some regions require an Identity to meet local regulations. @optional @param sms_application_sid [String?] The SID of the application that should handle SMS messages sent to the new phone number. If an sms_application_sid is present, we ignore all sms_*_url values and use those of the application. @optional @param sms_fallback_method [Twilio::HttpMethod?] @optional @param sms_fallback_url [String?] The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url. @optional @param sms_method [Twilio::HttpMethod?] @optional @param sms_url [String?] The URL we should call when the new phone number receives an incoming SMS message. @optional @param status_callback [String?] The URL we should call using the status_callback_method to send status information to your application. @optional @param status_callback_method [Twilio::HttpMethod?] @optional @param trunk_sid [String?] The SID of the Trunk we should use to handle calls to the new phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa. @optional @param voice_application_sid [String?] The SID of the application we should use to handle calls to the new phone number. If a voice_application_sid is present, we ignore all of the voice urls and use those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa. @optional @param voice_caller_id_lookup [Bool?] Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false. @optional @param voice_fallback_method [Twilio::HttpMethod?] @optional @param voice_fallback_url [String?] The URL that we should call when an error occurs retrieving or executing the TwiML requested by url. @optional @param voice_method [Twilio::HttpMethod?] @optional @param voice_receive_mode [Twilio::IncomingPhoneNumberEnumVoiceReceiveMode?] @optional @param voice_url [String?] The URL that we should call to answer a call to the new phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set. @return [Twilio::IncomingPhoneNumber]


[View source]
def create_incoming_phone_number_toll_free(*, account_sid : String | Nil = @account_sid, phone_number : String | Nil = nil, address_sid : String | Nil = nil, api_version : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil, &block : Crest::Response -> ) : Nil #

@required @param account_sid [String?] The SID of the Account that will create the resource. @required @param phone_number [String?] The phone number to purchase specified in E.164 format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. @optional @param address_sid [String?] The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. @optional @param api_version [String?] The API version to use for incoming calls made to the new phone number. The default is 2010-04-01. @optional @param bundle_sid [String?] The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. @optional @param emergency_address_sid [String?] The SID of the emergency address configuration to use for emergency calling from the new phone number. @optional @param emergency_status [Twilio::IncomingPhoneNumberEnumEmergencyStatus?] @optional @param friendly_name [String?] A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number. @optional @param identity_sid [String?] The SID of the Identity resource that we should associate with the new phone number. Some regions require an Identity to meet local regulations. @optional @param sms_application_sid [String?] The SID of the application that should handle SMS messages sent to the new phone number. If an sms_application_sid is present, we ignore all sms_*_url values and use those of the application. @optional @param sms_fallback_method [Twilio::HttpMethod?] @optional @param sms_fallback_url [String?] The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url. @optional @param sms_method [Twilio::HttpMethod?] @optional @param sms_url [String?] The URL we should call when the new phone number receives an incoming SMS message. @optional @param status_callback [String?] The URL we should call using the status_callback_method to send status information to your application. @optional @param status_callback_method [Twilio::HttpMethod?] @optional @param trunk_sid [String?] The SID of the Trunk we should use to handle calls to the new phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa. @optional @param voice_application_sid [String?] The SID of the application we should use to handle calls to the new phone number. If a voice_application_sid is present, we ignore all of the voice urls and use those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa. @optional @param voice_caller_id_lookup [Bool?] Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false. @optional @param voice_fallback_method [Twilio::HttpMethod?] @optional @param voice_fallback_url [String?] The URL that we should call when an error occurs retrieving or executing the TwiML requested by url. @optional @param voice_method [Twilio::HttpMethod?] @optional @param voice_receive_mode [Twilio::IncomingPhoneNumberEnumVoiceReceiveMode?] @optional @param voice_url [String?] The URL that we should call to answer a call to the new phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set. @return nil


[View source]
def create_incoming_phone_number_toll_free_with_http_info(*, account_sid : String | Nil = @account_sid, phone_number : String | Nil = nil, address_sid : String | Nil = nil, api_version : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil) : Tuple(Twilio::IncomingPhoneNumber, Int32, Hash(String, Array(String) | String)) #

@required @param account_sid [String?] The SID of the Account that will create the resource. @required @param phone_number [String?] The phone number to purchase specified in E.164 format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. @optional @param address_sid [String?] The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. @optional @param api_version [String?] The API version to use for incoming calls made to the new phone number. The default is 2010-04-01. @optional @param bundle_sid [String?] The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. @optional @param emergency_address_sid [String?] The SID of the emergency address configuration to use for emergency calling from the new phone number. @optional @param emergency_status [Twilio::IncomingPhoneNumberEnumEmergencyStatus?] @optional @param friendly_name [String?] A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number. @optional @param identity_sid [String?] The SID of the Identity resource that we should associate with the new phone number. Some regions require an Identity to meet local regulations. @optional @param sms_application_sid [String?] The SID of the application that should handle SMS messages sent to the new phone number. If an sms_application_sid is present, we ignore all sms_*_url values and use those of the application. @optional @param sms_fallback_method [Twilio::HttpMethod?] @optional @param sms_fallback_url [String?] The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url. @optional @param sms_method [Twilio::HttpMethod?] @optional @param sms_url [String?] The URL we should call when the new phone number receives an incoming SMS message. @optional @param status_callback [String?] The URL we should call using the status_callback_method to send status information to your application. @optional @param status_callback_method [Twilio::HttpMethod?] @optional @param trunk_sid [String?] The SID of the Trunk we should use to handle calls to the new phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa. @optional @param voice_application_sid [String?] The SID of the application we should use to handle calls to the new phone number. If a voice_application_sid is present, we ignore all of the voice urls and use those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa. @optional @param voice_caller_id_lookup [Bool?] Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false. @optional @param voice_fallback_method [Twilio::HttpMethod?] @optional @param voice_fallback_url [String?] The URL that we should call when an error occurs retrieving or executing the TwiML requested by url. @optional @param voice_method [Twilio::HttpMethod?] @optional @param voice_receive_mode [Twilio::IncomingPhoneNumberEnumVoiceReceiveMode?] @optional @param voice_url [String?] The URL that we should call to answer a call to the new phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set. @return [Tuple(Twilio::IncomingPhoneNumber, Integer, Hash)] Twilio::IncomingPhoneNumber, response status code and response headers


[View source]
def create_incoming_phone_number_with_http_info(*, account_sid : String | Nil = @account_sid, address_sid : String | Nil = nil, api_version : String | Nil = nil, area_code : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, phone_number : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil) : Tuple(Twilio::IncomingPhoneNumber, Int32, Hash(String, Array(String) | String)) #

Purchase a phone-number for the account. @required @param account_sid [String?] The SID of the Account that will create the resource. @optional @param address_sid [String?] The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. @optional @param api_version [String?] The API version to use for incoming calls made to the new phone number. The default is 2010-04-01. @optional @param area_code [String?] The desired area code for your new incoming phone number. Can be any three-digit, US or Canada area code. We will provision an available phone number within this area code for you. You must provide an area_code or a phone_number. (US and Canada only). @optional @param bundle_sid [String?] The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. @optional @param emergency_address_sid [String?] The SID of the emergency address configuration to use for emergency calling from the new phone number. @optional @param emergency_status [Twilio::IncomingPhoneNumberEnumEmergencyStatus?] @optional @param friendly_name [String?] A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the new phone number. @optional @param identity_sid [String?] The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. @optional @param phone_number [String?] The phone number to purchase specified in E.164 format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. @optional @param sms_application_sid [String?] The SID of the application that should handle SMS messages sent to the new phone number. If an sms_application_sid is present, we ignore all of the sms_*_url urls and use those set on the application. @optional @param sms_fallback_method [Twilio::HttpMethod?] @optional @param sms_fallback_url [String?] The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url. @optional @param sms_method [Twilio::HttpMethod?] @optional @param sms_url [String?] The URL we should call when the new phone number receives an incoming SMS message. @optional @param status_callback [String?] The URL we should call using the status_callback_method to send status information to your application. @optional @param status_callback_method [Twilio::HttpMethod?] @optional @param trunk_sid [String?] The SID of the Trunk we should use to handle calls to the new phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa. @optional @param voice_application_sid [String?] The SID of the application we should use to handle calls to the new phone number. If a voice_application_sid is present, we ignore all of the voice urls and use only those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa. @optional @param voice_caller_id_lookup [Bool?] Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false. @optional @param voice_fallback_method [Twilio::HttpMethod?] @optional @param voice_fallback_url [String?] The URL that we should call when an error occurs retrieving or executing the TwiML requested by url. @optional @param voice_method [Twilio::HttpMethod?] @optional @param voice_receive_mode [Twilio::IncomingPhoneNumberEnumVoiceReceiveMode?] @optional @param voice_url [String?] The URL that we should call to answer a call to the new phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set. @return [Tuple(Twilio::IncomingPhoneNumber, Integer, Hash)] Twilio::IncomingPhoneNumber, response status code and response headers


[View source]
def debugging?(*args, **options) #

[View source]
def debugging?(*args, **options, &) #

[View source]
def delete_incoming_phone_number(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Nil #

Delete a phone-numbers belonging to the account used to make the request. @required @param account_sid [String?] The SID of the Account that created the IncomingPhoneNumber resources to delete. @required @param sid [String?] The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to delete. @return [Nil]


[View source]
def delete_incoming_phone_number(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, &block : Crest::Response -> ) : Nil #

Delete a phone-numbers belonging to the account used to make the request. @required @param account_sid [String?] The SID of the Account that created the IncomingPhoneNumber resources to delete. @required @param sid [String?] The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to delete. @return nil


[View source]
def delete_incoming_phone_number_assigned_add_on(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, sid : String | Nil = nil) : Nil #

Remove the assignment of an Add-on installation from the Number specified. @required @param account_sid [String?] The SID of the Account that created the resources to delete. @required @param resource_sid [String?] The SID of the Phone Number to which the Add-on is assigned. @required @param sid [String?] The Twilio-provided string that uniquely identifies the resource to delete. @return [Nil]


[View source]
def delete_incoming_phone_number_assigned_add_on(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, sid : String | Nil = nil, &block : Crest::Response -> ) : Nil #

Remove the assignment of an Add-on installation from the Number specified. @required @param account_sid [String?] The SID of the Account that created the resources to delete. @required @param resource_sid [String?] The SID of the Phone Number to which the Add-on is assigned. @required @param sid [String?] The Twilio-provided string that uniquely identifies the resource to delete. @return nil


[View source]
def delete_incoming_phone_number_assigned_add_on_with_http_info(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, sid : String | Nil = nil) : Tuple(Nil, Int32, Hash(String, Array(String) | String)) #

Remove the assignment of an Add-on installation from the Number specified. @required @param account_sid [String?] The SID of the Account that created the resources to delete. @required @param resource_sid [String?] The SID of the Phone Number to which the Add-on is assigned. @required @param sid [String?] The Twilio-provided string that uniquely identifies the resource to delete. @return [Tuple(Nil, Integer, Hash)] Nil, response status code and response headers


[View source]
def delete_incoming_phone_number_with_http_info(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Tuple(Nil, Int32, Hash(String, Array(String) | String)) #

Delete a phone-numbers belonging to the account used to make the request. @required @param account_sid [String?] The SID of the Account that created the IncomingPhoneNumber resources to delete. @required @param sid [String?] The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to delete. @return [Tuple(Nil, Integer, Hash)] Nil, response status code and response headers


[View source]
def fetch_incoming_phone_number(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Twilio::IncomingPhoneNumber #

Fetch an incoming-phone-number belonging to the account used to make the request. @required @param account_sid [String?] The SID of the Account that created the IncomingPhoneNumber resource to fetch. @required @param sid [String?] The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to fetch. @return [Twilio::IncomingPhoneNumber]


[View source]
def fetch_incoming_phone_number(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, &block : Crest::Response -> ) : Nil #

Fetch an incoming-phone-number belonging to the account used to make the request. @required @param account_sid [String?] The SID of the Account that created the IncomingPhoneNumber resource to fetch. @required @param sid [String?] The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to fetch. @return nil


[View source]
def fetch_incoming_phone_number_assigned_add_on(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, sid : String | Nil = nil) : Twilio::IncomingPhoneNumberIncomingPhoneNumberAssignedAddOn #

Fetch an instance of an Add-on installation currently assigned to this Number. @required @param account_sid [String?] The SID of the Account that created the resource to fetch. @required @param resource_sid [String?] The SID of the Phone Number to which the Add-on is assigned. @required @param sid [String?] The Twilio-provided string that uniquely identifies the resource to fetch. @return [Twilio::IncomingPhoneNumberIncomingPhoneNumberAssignedAddOn]


[View source]
def fetch_incoming_phone_number_assigned_add_on(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, sid : String | Nil = nil, &block : Crest::Response -> ) : Nil #

Fetch an instance of an Add-on installation currently assigned to this Number. @required @param account_sid [String?] The SID of the Account that created the resource to fetch. @required @param resource_sid [String?] The SID of the Phone Number to which the Add-on is assigned. @required @param sid [String?] The Twilio-provided string that uniquely identifies the resource to fetch. @return nil


[View source]
def fetch_incoming_phone_number_assigned_add_on_extension(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, assigned_add_on_sid : String | Nil = nil, sid : String | Nil = nil) : Twilio::IncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension #

Fetch an instance of an Extension for the Assigned Add-on. @required @param account_sid [String?] The SID of the Account that created the resource to fetch. @required @param resource_sid [String?] The SID of the Phone Number to which the Add-on is assigned. @required @param assigned_add_on_sid [String?] The SID that uniquely identifies the assigned Add-on installation. @required @param sid [String?] The Twilio-provided string that uniquely identifies the resource to fetch. @return [Twilio::IncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension]


[View source]
def fetch_incoming_phone_number_assigned_add_on_extension(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, assigned_add_on_sid : String | Nil = nil, sid : String | Nil = nil, &block : Crest::Response -> ) : Nil #

Fetch an instance of an Extension for the Assigned Add-on. @required @param account_sid [String?] The SID of the Account that created the resource to fetch. @required @param resource_sid [String?] The SID of the Phone Number to which the Add-on is assigned. @required @param assigned_add_on_sid [String?] The SID that uniquely identifies the assigned Add-on installation. @required @param sid [String?] The Twilio-provided string that uniquely identifies the resource to fetch. @return nil


[View source]
def fetch_incoming_phone_number_assigned_add_on_extension_with_http_info(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, assigned_add_on_sid : String | Nil = nil, sid : String | Nil = nil) : Tuple(Twilio::IncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension, Int32, Hash(String, Array(String) | String)) #

Fetch an instance of an Extension for the Assigned Add-on. @required @param account_sid [String?] The SID of the Account that created the resource to fetch. @required @param resource_sid [String?] The SID of the Phone Number to which the Add-on is assigned. @required @param assigned_add_on_sid [String?] The SID that uniquely identifies the assigned Add-on installation. @required @param sid [String?] The Twilio-provided string that uniquely identifies the resource to fetch. @return [Tuple(Twilio::IncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension, Integer, Hash)] Twilio::IncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension, response status code and response headers


[View source]
def fetch_incoming_phone_number_assigned_add_on_with_http_info(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, sid : String | Nil = nil) : Tuple(Twilio::IncomingPhoneNumberIncomingPhoneNumberAssignedAddOn, Int32, Hash(String, Array(String) | String)) #

Fetch an instance of an Add-on installation currently assigned to this Number. @required @param account_sid [String?] The SID of the Account that created the resource to fetch. @required @param resource_sid [String?] The SID of the Phone Number to which the Add-on is assigned. @required @param sid [String?] The Twilio-provided string that uniquely identifies the resource to fetch. @return [Tuple(Twilio::IncomingPhoneNumberIncomingPhoneNumberAssignedAddOn, Integer, Hash)] Twilio::IncomingPhoneNumberIncomingPhoneNumberAssignedAddOn, response status code and response headers


[View source]
def fetch_incoming_phone_number_with_http_info(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Tuple(Twilio::IncomingPhoneNumber, Int32, Hash(String, Array(String) | String)) #

Fetch an incoming-phone-number belonging to the account used to make the request. @required @param account_sid [String?] The SID of the Account that created the IncomingPhoneNumber resource to fetch. @required @param sid [String?] The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to fetch. @return [Tuple(Twilio::IncomingPhoneNumber, Integer, Hash)] Twilio::IncomingPhoneNumber, response status code and response headers


[View source]
def list_incoming_phone_number(*, account_sid : String | Nil = @account_sid, beta : Bool | Nil = nil, friendly_name : String | Nil = nil, phone_number : String | Nil = nil, origin : String | Nil = nil, page_size : Int32 | Nil = nil) : Twilio::ListIncomingPhoneNumberResponse #

Retrieve a list of incoming-phone-numbers belonging to the account used to make the request. @required @param account_sid [String?] The SID of the Account that created the IncomingPhoneNumber resources to read. @optional @param beta [Bool?] Whether to include phone numbers new to the Twilio platform. Can be: true or false and the default is true. @optional @param friendly_name [String?] A string that identifies the IncomingPhoneNumber resources to read. @optional @param phone_number [String?] The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. @optional @param origin [String?] Whether to include phone numbers based on their origin. Can be: twilio or hosted. By default, phone numbers of all origin are included. @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::ListIncomingPhoneNumberResponse]


[View source]
def list_incoming_phone_number(*, account_sid : String | Nil = @account_sid, beta : Bool | Nil = nil, friendly_name : String | Nil = nil, phone_number : String | Nil = nil, origin : String | Nil = nil, page_size : Int32 | Nil = nil, &block : Crest::Response -> ) : Nil #

Retrieve a list of incoming-phone-numbers belonging to the account used to make the request. @required @param account_sid [String?] The SID of the Account that created the IncomingPhoneNumber resources to read. @optional @param beta [Bool?] Whether to include phone numbers new to the Twilio platform. Can be: true or false and the default is true. @optional @param friendly_name [String?] A string that identifies the IncomingPhoneNumber resources to read. @optional @param phone_number [String?] The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. @optional @param origin [String?] Whether to include phone numbers based on their origin. Can be: twilio or hosted. By default, phone numbers of all origin are included. @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


[View source]
def list_incoming_phone_number_assigned_add_on(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, page_size : Int32 | Nil = nil) : Twilio::ListIncomingPhoneNumberAssignedAddOnResponse #

Retrieve a list of Add-on installations currently assigned to this Number. @required @param account_sid [String?] The SID of the Account that created the resources to read. @required @param resource_sid [String?] The SID of the Phone Number to which the Add-on is assigned. @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::ListIncomingPhoneNumberAssignedAddOnResponse]


[View source]
def list_incoming_phone_number_assigned_add_on(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, page_size : Int32 | Nil = nil, &block : Crest::Response -> ) : Nil #

Retrieve a list of Add-on installations currently assigned to this Number. @required @param account_sid [String?] The SID of the Account that created the resources to read. @required @param resource_sid [String?] The SID of the Phone Number to which the Add-on is assigned. @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


[View source]
def list_incoming_phone_number_assigned_add_on_extension(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, assigned_add_on_sid : String | Nil = nil, page_size : Int32 | Nil = nil) : Twilio::ListIncomingPhoneNumberAssignedAddOnExtensionResponse #

Retrieve a list of Extensions for the Assigned Add-on. @required @param account_sid [String?] The SID of the Account that created the resources to read. @required @param resource_sid [String?] The SID of the Phone Number to which the Add-on is assigned. @required @param assigned_add_on_sid [String?] The SID that uniquely identifies the assigned Add-on installation. @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::ListIncomingPhoneNumberAssignedAddOnExtensionResponse]


[View source]
def list_incoming_phone_number_assigned_add_on_extension(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, assigned_add_on_sid : String | Nil = nil, page_size : Int32 | Nil = nil, &block : Crest::Response -> ) : Nil #

Retrieve a list of Extensions for the Assigned Add-on. @required @param account_sid [String?] The SID of the Account that created the resources to read. @required @param resource_sid [String?] The SID of the Phone Number to which the Add-on is assigned. @required @param assigned_add_on_sid [String?] The SID that uniquely identifies the assigned Add-on installation. @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


[View source]
def list_incoming_phone_number_assigned_add_on_extension_with_http_info(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, assigned_add_on_sid : String | Nil = nil, page_size : Int32 | Nil = nil) : Tuple(Twilio::ListIncomingPhoneNumberAssignedAddOnExtensionResponse, Int32, Hash(String, Array(String) | String)) #

Retrieve a list of Extensions for the Assigned Add-on. @required @param account_sid [String?] The SID of the Account that created the resources to read. @required @param resource_sid [String?] The SID of the Phone Number to which the Add-on is assigned. @required @param assigned_add_on_sid [String?] The SID that uniquely identifies the assigned Add-on installation. @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::ListIncomingPhoneNumberAssignedAddOnExtensionResponse, Integer, Hash)] Twilio::ListIncomingPhoneNumberAssignedAddOnExtensionResponse, response status code and response headers


[View source]
def list_incoming_phone_number_assigned_add_on_with_http_info(*, account_sid : String | Nil = @account_sid, resource_sid : String | Nil = nil, page_size : Int32 | Nil = nil) : Tuple(Twilio::ListIncomingPhoneNumberAssignedAddOnResponse, Int32, Hash(String, Array(String) | String)) #

Retrieve a list of Add-on installations currently assigned to this Number. @required @param account_sid [String?] The SID of the Account that created the resources to read. @required @param resource_sid [String?] The SID of the Phone Number to which the Add-on is assigned. @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::ListIncomingPhoneNumberAssignedAddOnResponse, Integer, Hash)] Twilio::ListIncomingPhoneNumberAssignedAddOnResponse, response status code and response headers


[View source]
def list_incoming_phone_number_local(*, account_sid : String | Nil = @account_sid, beta : Bool | Nil = nil, friendly_name : String | Nil = nil, phone_number : String | Nil = nil, origin : String | Nil = nil, page_size : Int32 | Nil = nil) : Twilio::ListIncomingPhoneNumberLocalResponse #

@required @param account_sid [String?] The SID of the Account that created the resources to read. @optional @param beta [Bool?] Whether to include phone numbers new to the Twilio platform. Can be: true or false and the default is true. @optional @param friendly_name [String?] A string that identifies the resources to read. @optional @param phone_number [String?] The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. @optional @param origin [String?] Whether to include phone numbers based on their origin. Can be: twilio or hosted. By default, phone numbers of all origin are included. @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::ListIncomingPhoneNumberLocalResponse]


[View source]
def list_incoming_phone_number_local(*, account_sid : String | Nil = @account_sid, beta : Bool | Nil = nil, friendly_name : String | Nil = nil, phone_number : String | Nil = nil, origin : String | Nil = nil, page_size : Int32 | Nil = nil, &block : Crest::Response -> ) : Nil #

@required @param account_sid [String?] The SID of the Account that created the resources to read. @optional @param beta [Bool?] Whether to include phone numbers new to the Twilio platform. Can be: true or false and the default is true. @optional @param friendly_name [String?] A string that identifies the resources to read. @optional @param phone_number [String?] The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. @optional @param origin [String?] Whether to include phone numbers based on their origin. Can be: twilio or hosted. By default, phone numbers of all origin are included. @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


[View source]
def list_incoming_phone_number_local_with_http_info(*, account_sid : String | Nil = @account_sid, beta : Bool | Nil = nil, friendly_name : String | Nil = nil, phone_number : String | Nil = nil, origin : String | Nil = nil, page_size : Int32 | Nil = nil) : Tuple(Twilio::ListIncomingPhoneNumberLocalResponse, Int32, Hash(String, Array(String) | String)) #

@required @param account_sid [String?] The SID of the Account that created the resources to read. @optional @param beta [Bool?] Whether to include phone numbers new to the Twilio platform. Can be: true or false and the default is true. @optional @param friendly_name [String?] A string that identifies the resources to read. @optional @param phone_number [String?] The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. @optional @param origin [String?] Whether to include phone numbers based on their origin. Can be: twilio or hosted. By default, phone numbers of all origin are included. @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::ListIncomingPhoneNumberLocalResponse, Integer, Hash)] Twilio::ListIncomingPhoneNumberLocalResponse, response status code and response headers


[View source]
def list_incoming_phone_number_mobile(*, account_sid : String | Nil = @account_sid, beta : Bool | Nil = nil, friendly_name : String | Nil = nil, phone_number : String | Nil = nil, origin : String | Nil = nil, page_size : Int32 | Nil = nil) : Twilio::ListIncomingPhoneNumberMobileResponse #

@required @param account_sid [String?] The SID of the Account that created the resources to read. @optional @param beta [Bool?] Whether to include phone numbers new to the Twilio platform. Can be: true or false and the default is true. @optional @param friendly_name [String?] A string that identifies the resources to read. @optional @param phone_number [String?] The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. @optional @param origin [String?] Whether to include phone numbers based on their origin. Can be: twilio or hosted. By default, phone numbers of all origin are included. @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::ListIncomingPhoneNumberMobileResponse]


[View source]
def list_incoming_phone_number_mobile(*, account_sid : String | Nil = @account_sid, beta : Bool | Nil = nil, friendly_name : String | Nil = nil, phone_number : String | Nil = nil, origin : String | Nil = nil, page_size : Int32 | Nil = nil, &block : Crest::Response -> ) : Nil #

@required @param account_sid [String?] The SID of the Account that created the resources to read. @optional @param beta [Bool?] Whether to include phone numbers new to the Twilio platform. Can be: true or false and the default is true. @optional @param friendly_name [String?] A string that identifies the resources to read. @optional @param phone_number [String?] The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. @optional @param origin [String?] Whether to include phone numbers based on their origin. Can be: twilio or hosted. By default, phone numbers of all origin are included. @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


[View source]
def list_incoming_phone_number_mobile_with_http_info(*, account_sid : String | Nil = @account_sid, beta : Bool | Nil = nil, friendly_name : String | Nil = nil, phone_number : String | Nil = nil, origin : String | Nil = nil, page_size : Int32 | Nil = nil) : Tuple(Twilio::ListIncomingPhoneNumberMobileResponse, Int32, Hash(String, Array(String) | String)) #

@required @param account_sid [String?] The SID of the Account that created the resources to read. @optional @param beta [Bool?] Whether to include phone numbers new to the Twilio platform. Can be: true or false and the default is true. @optional @param friendly_name [String?] A string that identifies the resources to read. @optional @param phone_number [String?] The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. @optional @param origin [String?] Whether to include phone numbers based on their origin. Can be: twilio or hosted. By default, phone numbers of all origin are included. @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::ListIncomingPhoneNumberMobileResponse, Integer, Hash)] Twilio::ListIncomingPhoneNumberMobileResponse, response status code and response headers


[View source]
def list_incoming_phone_number_toll_free(*, account_sid : String | Nil = @account_sid, beta : Bool | Nil = nil, friendly_name : String | Nil = nil, phone_number : String | Nil = nil, origin : String | Nil = nil, page_size : Int32 | Nil = nil) : Twilio::ListIncomingPhoneNumberTollFreeResponse #

@required @param account_sid [String?] The SID of the Account that created the resources to read. @optional @param beta [Bool?] Whether to include phone numbers new to the Twilio platform. Can be: true or false and the default is true. @optional @param friendly_name [String?] A string that identifies the resources to read. @optional @param phone_number [String?] The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. @optional @param origin [String?] Whether to include phone numbers based on their origin. Can be: twilio or hosted. By default, phone numbers of all origin are included. @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::ListIncomingPhoneNumberTollFreeResponse]


[View source]
def list_incoming_phone_number_toll_free(*, account_sid : String | Nil = @account_sid, beta : Bool | Nil = nil, friendly_name : String | Nil = nil, phone_number : String | Nil = nil, origin : String | Nil = nil, page_size : Int32 | Nil = nil, &block : Crest::Response -> ) : Nil #

@required @param account_sid [String?] The SID of the Account that created the resources to read. @optional @param beta [Bool?] Whether to include phone numbers new to the Twilio platform. Can be: true or false and the default is true. @optional @param friendly_name [String?] A string that identifies the resources to read. @optional @param phone_number [String?] The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. @optional @param origin [String?] Whether to include phone numbers based on their origin. Can be: twilio or hosted. By default, phone numbers of all origin are included. @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


[View source]
def list_incoming_phone_number_toll_free_with_http_info(*, account_sid : String | Nil = @account_sid, beta : Bool | Nil = nil, friendly_name : String | Nil = nil, phone_number : String | Nil = nil, origin : String | Nil = nil, page_size : Int32 | Nil = nil) : Tuple(Twilio::ListIncomingPhoneNumberTollFreeResponse, Int32, Hash(String, Array(String) | String)) #

@required @param account_sid [String?] The SID of the Account that created the resources to read. @optional @param beta [Bool?] Whether to include phone numbers new to the Twilio platform. Can be: true or false and the default is true. @optional @param friendly_name [String?] A string that identifies the resources to read. @optional @param phone_number [String?] The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. @optional @param origin [String?] Whether to include phone numbers based on their origin. Can be: twilio or hosted. By default, phone numbers of all origin are included. @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::ListIncomingPhoneNumberTollFreeResponse, Integer, Hash)] Twilio::ListIncomingPhoneNumberTollFreeResponse, response status code and response headers


[View source]
def list_incoming_phone_number_with_http_info(*, account_sid : String | Nil = @account_sid, beta : Bool | Nil = nil, friendly_name : String | Nil = nil, phone_number : String | Nil = nil, origin : String | Nil = nil, page_size : Int32 | Nil = nil) : Tuple(Twilio::ListIncomingPhoneNumberResponse, Int32, Hash(String, Array(String) | String)) #

Retrieve a list of incoming-phone-numbers belonging to the account used to make the request. @required @param account_sid [String?] The SID of the Account that created the IncomingPhoneNumber resources to read. @optional @param beta [Bool?] Whether to include phone numbers new to the Twilio platform. Can be: true or false and the default is true. @optional @param friendly_name [String?] A string that identifies the IncomingPhoneNumber resources to read. @optional @param phone_number [String?] The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. @optional @param origin [String?] Whether to include phone numbers based on their origin. Can be: twilio or hosted. By default, phone numbers of all origin are included. @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::ListIncomingPhoneNumberResponse, Integer, Hash)] Twilio::ListIncomingPhoneNumberResponse, response status code and response headers


[View source]
def update_incoming_phone_number(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, account_sid2 : String | Nil = @account_sid, address_sid : String | Nil = nil, api_version : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil) : Twilio::IncomingPhoneNumber #

Update an incoming-phone-number instance. @required @param account_sid [String?] The SID of the Account that created the IncomingPhoneNumber resource to update. For more information, see Exchanging Numbers Between Subaccounts. @required @param sid [String?] The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to update. @optional @param account_sid2 [String?] The SID of the Account that created the IncomingPhoneNumber resource to update. For more information, see Exchanging Numbers Between Subaccounts. @optional @param address_sid [String?] The SID of the Address resource we should associate with the phone number. Some regions require addresses to meet local regulations. @optional @param api_version [String?] The API version to use for incoming calls made to the phone number. The default is 2010-04-01. @optional @param bundle_sid [String?] The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. @optional @param emergency_address_sid [String?] The SID of the emergency address configuration to use for emergency calling from this phone number. @optional @param emergency_status [Twilio::IncomingPhoneNumberEnumEmergencyStatus?] @optional @param friendly_name [String?] A descriptive string that you created to describe this phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number. @optional @param identity_sid [String?] The SID of the Identity resource that we should associate with the phone number. Some regions require an identity to meet local regulations. @optional @param sms_application_sid [String?] The SID of the application that should handle SMS messages sent to the number. If an sms_application_sid is present, we ignore all of the sms_*_url urls and use those set on the application. @optional @param sms_fallback_method [Twilio::HttpMethod?] @optional @param sms_fallback_url [String?] The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url. @optional @param sms_method [Twilio::HttpMethod?] @optional @param sms_url [String?] The URL we should call when the phone number receives an incoming SMS message. @optional @param status_callback [String?] The URL we should call using the status_callback_method to send status information to your application. @optional @param status_callback_method [Twilio::HttpMethod?] @optional @param trunk_sid [String?] The SID of the Trunk we should use to handle phone calls to the phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa. @optional @param voice_application_sid [String?] The SID of the application we should use to handle phone calls to the phone number. If a voice_application_sid is present, we ignore all of the voice urls and use only those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa. @optional @param voice_caller_id_lookup [Bool?] Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false. @optional @param voice_fallback_method [Twilio::HttpMethod?] @optional @param voice_fallback_url [String?] The URL that we should call when an error occurs retrieving or executing the TwiML requested by url. @optional @param voice_method [Twilio::HttpMethod?] @optional @param voice_receive_mode [Twilio::IncomingPhoneNumberEnumVoiceReceiveMode?] @optional @param voice_url [String?] The URL that we should call to answer a call to the phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set. @return [Twilio::IncomingPhoneNumber]


[View source]
def update_incoming_phone_number(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, account_sid2 : String | Nil = @account_sid, address_sid : String | Nil = nil, api_version : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil, &block : Crest::Response -> ) : Nil #

Update an incoming-phone-number instance. @required @param account_sid [String?] The SID of the Account that created the IncomingPhoneNumber resource to update. For more information, see Exchanging Numbers Between Subaccounts. @required @param sid [String?] The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to update. @optional @param account_sid2 [String?] The SID of the Account that created the IncomingPhoneNumber resource to update. For more information, see Exchanging Numbers Between Subaccounts. @optional @param address_sid [String?] The SID of the Address resource we should associate with the phone number. Some regions require addresses to meet local regulations. @optional @param api_version [String?] The API version to use for incoming calls made to the phone number. The default is 2010-04-01. @optional @param bundle_sid [String?] The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. @optional @param emergency_address_sid [String?] The SID of the emergency address configuration to use for emergency calling from this phone number. @optional @param emergency_status [Twilio::IncomingPhoneNumberEnumEmergencyStatus?] @optional @param friendly_name [String?] A descriptive string that you created to describe this phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number. @optional @param identity_sid [String?] The SID of the Identity resource that we should associate with the phone number. Some regions require an identity to meet local regulations. @optional @param sms_application_sid [String?] The SID of the application that should handle SMS messages sent to the number. If an sms_application_sid is present, we ignore all of the sms_*_url urls and use those set on the application. @optional @param sms_fallback_method [Twilio::HttpMethod?] @optional @param sms_fallback_url [String?] The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url. @optional @param sms_method [Twilio::HttpMethod?] @optional @param sms_url [String?] The URL we should call when the phone number receives an incoming SMS message. @optional @param status_callback [String?] The URL we should call using the status_callback_method to send status information to your application. @optional @param status_callback_method [Twilio::HttpMethod?] @optional @param trunk_sid [String?] The SID of the Trunk we should use to handle phone calls to the phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa. @optional @param voice_application_sid [String?] The SID of the application we should use to handle phone calls to the phone number. If a voice_application_sid is present, we ignore all of the voice urls and use only those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa. @optional @param voice_caller_id_lookup [Bool?] Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false. @optional @param voice_fallback_method [Twilio::HttpMethod?] @optional @param voice_fallback_url [String?] The URL that we should call when an error occurs retrieving or executing the TwiML requested by url. @optional @param voice_method [Twilio::HttpMethod?] @optional @param voice_receive_mode [Twilio::IncomingPhoneNumberEnumVoiceReceiveMode?] @optional @param voice_url [String?] The URL that we should call to answer a call to the phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set. @return nil


[View source]
def update_incoming_phone_number_with_http_info(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, account_sid2 : String | Nil = @account_sid, address_sid : String | Nil = nil, api_version : String | Nil = nil, bundle_sid : String | Nil = nil, emergency_address_sid : String | Nil = nil, emergency_status : Twilio::IncomingPhoneNumberEnumEmergencyStatus | Nil = nil, friendly_name : String | Nil = nil, identity_sid : String | Nil = nil, sms_application_sid : String | Nil = nil, sms_fallback_method : Twilio::HttpMethod | Nil = nil, sms_fallback_url : String | Nil = nil, sms_method : Twilio::HttpMethod | Nil = nil, sms_url : String | Nil = nil, status_callback : String | Nil = nil, status_callback_method : Twilio::HttpMethod | Nil = nil, trunk_sid : String | Nil = nil, voice_application_sid : String | Nil = nil, voice_caller_id_lookup : Bool | Nil = nil, voice_fallback_method : Twilio::HttpMethod | Nil = nil, voice_fallback_url : String | Nil = nil, voice_method : Twilio::HttpMethod | Nil = nil, voice_receive_mode : Twilio::IncomingPhoneNumberEnumVoiceReceiveMode | Nil = nil, voice_url : String | Nil = nil) : Tuple(Twilio::IncomingPhoneNumber, Int32, Hash(String, Array(String) | String)) #

Update an incoming-phone-number instance. @required @param account_sid [String?] The SID of the Account that created the IncomingPhoneNumber resource to update. For more information, see Exchanging Numbers Between Subaccounts. @required @param sid [String?] The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to update. @optional @param account_sid2 [String?] The SID of the Account that created the IncomingPhoneNumber resource to update. For more information, see Exchanging Numbers Between Subaccounts. @optional @param address_sid [String?] The SID of the Address resource we should associate with the phone number. Some regions require addresses to meet local regulations. @optional @param api_version [String?] The API version to use for incoming calls made to the phone number. The default is 2010-04-01. @optional @param bundle_sid [String?] The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. @optional @param emergency_address_sid [String?] The SID of the emergency address configuration to use for emergency calling from this phone number. @optional @param emergency_status [Twilio::IncomingPhoneNumberEnumEmergencyStatus?] @optional @param friendly_name [String?] A descriptive string that you created to describe this phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number. @optional @param identity_sid [String?] The SID of the Identity resource that we should associate with the phone number. Some regions require an identity to meet local regulations. @optional @param sms_application_sid [String?] The SID of the application that should handle SMS messages sent to the number. If an sms_application_sid is present, we ignore all of the sms_*_url urls and use those set on the application. @optional @param sms_fallback_method [Twilio::HttpMethod?] @optional @param sms_fallback_url [String?] The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url. @optional @param sms_method [Twilio::HttpMethod?] @optional @param sms_url [String?] The URL we should call when the phone number receives an incoming SMS message. @optional @param status_callback [String?] The URL we should call using the status_callback_method to send status information to your application. @optional @param status_callback_method [Twilio::HttpMethod?] @optional @param trunk_sid [String?] The SID of the Trunk we should use to handle phone calls to the phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa. @optional @param voice_application_sid [String?] The SID of the application we should use to handle phone calls to the phone number. If a voice_application_sid is present, we ignore all of the voice urls and use only those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa. @optional @param voice_caller_id_lookup [Bool?] Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false. @optional @param voice_fallback_method [Twilio::HttpMethod?] @optional @param voice_fallback_url [String?] The URL that we should call when an error occurs retrieving or executing the TwiML requested by url. @optional @param voice_method [Twilio::HttpMethod?] @optional @param voice_receive_mode [Twilio::IncomingPhoneNumberEnumVoiceReceiveMode?] @optional @param voice_url [String?] The URL that we should call to answer a call to the phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set. @return [Tuple(Twilio::IncomingPhoneNumber, Integer, Hash)] Twilio::IncomingPhoneNumber, response status code and response headers


[View source]