Documentation
¶
Index ¶
Constants ¶
View Source
const ( CommandPlay string = "Play" StatusCompleted string = "Completed" )
View Source
const ( DefaultParamValue string = "~" URLTelephonySessionFormat string = "/restapi/v1.0/account/%s/telephony/sessions/%s" URLTelephonySessionsPartiesPlayFormat string = `/restapi/v1.0/account/%s/telephony/sessions/%s/parties/%s/play` )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallEnterEvent ¶
type CallExitEvent ¶
type CommandUpdateEvent ¶
type CommandUpdateEvent struct { AccountID string `json:"accountId"` Command string `json:"command"` CommandID string `json:"commandId"` ExtensionID string `json:"extensionId"` PartyID string `json:"partyId"` SessionID string `json:"sessionId"` Status string `json:"status"` }
{ "accountId": "400131801008", "extensionId": "400137552008", "inParty": { "from": { "phoneNumber": "+12127150355" }, "id": "p-467aa7237b524387b053c5d5f06787f5", "to": { "phoneNumber": "+12014320001" } }, "partyId": "p-ec4202d7dd35401f9e6230d428493701", "sessionId": "s-82eecd460b564de1a42b395eb845d912" }
type PlayRequest ¶
type RcScriptSdk ¶
RcScriptSdk is a simple SDK for making Call Scripting Commands
func (*RcScriptSdk) Hangup ¶
func (sdk *RcScriptSdk) Hangup(sessionID string) (*http.Response, error)
Hangsup a call
func (*RcScriptSdk) Play ¶
func (sdk *RcScriptSdk) Play(sessionID, partyID string, body PlayRequest) (*http.Response, error)
Play plays a media file
Click to show internal directories.
Click to hide internal directories.