Bandwidth PHP SDK
  • Namespace
  • Class

Namespaces

  • Catapult
  • None

Classes

  • Account
  • AnswerCallEvent
  • Application
  • ApplicationCollection
  • AudioMixin
  • BaML
  • BaMLAssert
  • BaMLAttribute
  • BaMLContainer
  • BaMLGather
  • BaMLGeneric
  • BaMLHangup
  • BaMLPlayAudio
  • BaMLRedirect
  • BaMLResource
  • BaMLSendMessage
  • BaMLSpeakSentence
  • BaMLText
  • BaMLTransfer
  • BaMLVerb
  • BaMLVerbGather
  • BaMLVerbHangup
  • BaMLVerbPlayAudio
  • BaMLVerbRecord
  • BaMLVerbRedirect
  • BaMLVerbSendMessage
  • BaMLVerbSpeakSentence
  • BaMLVerbTransfer
  • BaseResource
  • BaseUtilities
  • Bridge
  • BridgeCollection
  • Call
  • Callback
  • CallCollection
  • CallCombo
  • CallEvent
  • CallEvents
  • CallEventsCollection
  • Cleaner
  • Client
  • ClientResource
  • CollectionIterator
  • CollectionObject
  • CollectionSequence
  • Conference
  • ConferenceEventMixin
  • ConferenceMember
  • ConferenceMemberEvent
  • ConferencePlaybackEvent
  • Constructor
  • Converter
  • Credentials
  • CredentialsUser
  • DataPacket
  • DataPacketCollection
  • Date
  • DependsObject
  • DependsResource
  • Domains
  • DomainsCollection
  • DTMF
  • DtmfCallEvent
  • Endpoints
  • EndpointsCollection
  • EndpointsCredentials
  • EndpointsMulti
  • EndpointsToken
  • Ensure
  • EnsureResource
  • ErrorCallEvent
  • Event
  • EventAssert
  • EventCollection
  • EventResource
  • EventType
  • FileHandler
  • Gather
  • GatherCallEvent
  • GatherCollection
  • GenericResource
  • HangupCallEvent
  • Id
  • IncomingCallEvent
  • LoadsResource
  • Locator
  • Log
  • Media
  • MediaCollection
  • MediaURL
  • Message
  • MessageCollection
  • MessageEvent
  • MessageMulti
  • MetaResource
  • Multi
  • NumberInfo
  • Page
  • Parameters
  • PathResource
  • PhoneCombo
  • PhoneNumber
  • PhoneNumbers
  • PhoneNumbersCollection
  • PlaybackCallEvent
  • PrototypeUtility
  • Recording
  • RecordingCallEvent
  • RecordingCollection
  • RejectCallEvent
  • RemoveResource
  • Resolver
  • ResolverResource
  • RESTClient
  • SchemaResource
  • Sentence
  • SIP
  • SIPRealm
  • Size
  • SpeakCallEvent
  • StringifyResource
  • SubfunctionObject
  • SubFunctionResource
  • TextMessage
  • Timeout
  • TimeoutCallEvent
  • TitleUtility
  • Transaction
  • TransactionCollection
  • Transcription
  • TranscriptionCallEvent
  • TranscriptionCollection
  • Types
  • URIResource
  • UserError
  • UserErrorCollection
  • VerifyResource
  • Voice
  • XMLUtility

Interfaces

  • API
  • API_MODE
  • BAML_SETTINGS
  • BAML_VERBS
  • BAML_XML_HANDLERS
  • BAML_XML_METHODS
  • BAML_XML_OPTIONS
  • CALL_ERROR
  • CALL_STATES
  • CONFERENCE_MEMBER_STATES
  • CONFERENCE_SPEAK_STATES
  • CONFERENCE_STATES
  • DEFAULTS
  • EXCEPTIONS
  • GATHER_REASONS
  • GATHER_STATES
  • MESSAGE_DIRECTIONS
  • MESSAGE_STATES
  • NUMBER_STATES
  • PATHS
  • PLAYBACK_STATES
  • RECORDING_STATES
  • RECORDING_STATUSES
  • SPEAK_STATES
  • TRANSCRIPTION_STATES
  • WARNINGS

Class PhoneNumbers

GenericResource is the class every model should use for initialization. It provides the functions to check the mandatory, optional arguments provided

Catapult\GenericResource
Extended by Catapult\PhoneNumbers
Final
Namespace: Catapult
Located at models/PhoneNumbers.php

Methods summary

public
# __construct( )

CTor for phone numbers use PhoneNumbers path primary, availableNumbers secondary

CTor for phone numbers use PhoneNumbers path primary, availableNumbers secondary

Init Forms GET PhoneNumbers('number-id') PhoneNumbers

POST PhoneNumbers(array)

public
# getNumberInfo( valid $number )

Get the information for a given number

Get the information for a given number

Parameters

$number
number
public
# patch( data: $data )

Make the needed changes to the PhoneNumber. Where set of params can be: applicationId, fallback_number,

Make the needed changes to the PhoneNumber. Where set of params can be: applicationId, fallback_number,

Parameters

$data
of valid patching options
public
# delete( id $data = null )

delete a media file

delete a media file

TODO: this should not keep the object's information. This will not be useful anymore!

Parameters

$data
model

Overrides

Catapult\GenericResource::delete
public
# create( )

stub for allocate get new numbers

stub for allocate get new numbers

Overrides

Catapult\GenericResource::create
public
# allocate( args $args )

allocate a new number number must be available or warning will be thrown

allocate a new number number must be available or warning will be thrown

Parameters

$args

application (one you want to associate this number with) fallback a fallback option if this isnt available

public
# validateSearchQuery( args: $args )

validate params for availabe local number search. Rules: 1) state, zip and areaCode are mutually exclusive use only one of them per request 2) localNumber and inLocalCallingArea only applies for searching and order numbers in specific areaCode

validate params for availabe local number search. Rules: 1) state, zip and areaCode are mutually exclusive use only one of them per request 2) localNumber and inLocalCallingArea only applies for searching and order numbers in specific areaCode

Parameters

$args
of arguments with above constraints
public
# listLocal( params $params )

List the local numbers according to the provided numbers

List the local numbers according to the provided numbers

Parameters

$params
public
# listTollFree( set $params )

List toll free numbers according to the provided parameters

List toll free numbers according to the provided parameters

Parameters

$params
toll free parameters
public
# batchAllocateLocal( params $params )

Allocate numbers in batch where numbers must be local

Allocate numbers in batch where numbers must be local

notes: 1. state, zip and area_code are mutually exclusive, you may use only one of them per calling list_local. 2. local_number and in_local_calling_area only applies for searching numbers in specific area_code.

Parameters

$params
public
# batchAllocateTollFree( params $params )

TollFree version batch allocation

TollFree version batch allocation

Parameters

$params

Methods inherited from Catapult\GenericResource

__call(), __toString(), _init(), _list(), check(), get(), getAudioUrl(), getObjClass(), getPath(), getSchemaString(), get_sub_function(), load(), reload(), toArray(), update()

Properties summary

Properties inherited from Catapult\GenericResource

$lastUpdate, $paths

Bandwidth PHP SDK API documentation generated by ApiGen