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 Endpoints

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\Endpoints
Final
Namespace: Catapult
Located at models/Endpoints.php

Methods summary

public
# __construct( )

construct the endpoint as initiated or a new one. endpoints take domains as a dependancy so we need one on init

construct the endpoint as initiated or a new one. endpoints take domains as a dependancy so we need one on init

init forms

GET: Endpoints('domain-id', 'endpoints-id') Endpoints()

POST: Endpoints('domain-id', array) Endpoints(array)

public
# load( )

Endpoints overloads the load/1 function we need to rebuild its path resource we need: domains/{domain-id}/endpoints/{endpoint-id}

Endpoints overloads the load/1 function we need to rebuild its path resource we need: domains/{domain-id}/endpoints/{endpoint-id}

Implementors note: this was added to get around CollectionObject's listAll function which will need to set up this without having to do another RESTful get

Overrides

Catapult\GenericResource::load
public
# create( )

Create musn't preserve the domainId as this will be our path. We will pass it in the parameter, use PathResource then remove it

Create musn't preserve the domainId as this will be our path. We will pass it in the parameter, use PathResource then remove it

Param:

args Endpoint create data

Overrides

Catapult\GenericResource::create
public
# getCredentials( )

get the credentials as a EndpointsCredentials object more on this in types

get the credentials as a EndpointsCredentials object more on this in types

Returns

EndpointsCredentials
public
# createAuthToken( )

create an auth token and return it as a EndpointsToken object more on this in types

create an auth token and return it as a EndpointsToken object more on this in types

Returns

EndpointsToken
public
# deleteAuthToken( Catapult\EndpointsToken $Token )

delete an auth token given as a EndpointsToken object more on this in types

delete an auth token given as a EndpointsToken object more on this in types

Returns

boolean

Methods inherited from Catapult\GenericResource

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

Properties summary

Properties inherited from Catapult\GenericResource

$lastUpdate, $paths

Bandwidth PHP SDK API documentation generated by ApiGen