/
home
/
desid573
/
public_html
/
test_api
/
twilio-php-master
/
Twilio
/
Rest
/
Api
/
V2010
/
Account
/
/home/desid573/public_html/test_api/twilio-php-master/Twilio/Rest/Api/V2010/Account
mkdir
upload
Name
Size
Mode
Actions
Address/
-
0755
rm
AvailablePhoneNumberCountry/
-
0755
rm
Call/
-
0755
rm
Conference/
-
0755
rm
IncomingPhoneNumber/
-
0755
rm
Message/
-
0755
rm
Queue/
-
0755
rm
Recording/
-
0755
rm
Sip/
-
0755
rm
Usage/
-
0755
rm
AddressContext.php
5013
0644
edit
dl
rm
AddressInstance.php
5025
0644
edit
dl
rm
AddressList.php
6716
0644
edit
dl
rm
AddressOptions.php
9438
0644
edit
dl
rm
AddressPage.php
758
0644
edit
dl
rm
ApplicationContext.php
3646
0644
edit
dl
rm
ApplicationInstance.php
5671
0644
edit
dl
rm
ApplicationList.php
6939
0644
edit
dl
rm
ApplicationOptions.php
23737
0644
edit
dl
rm
ApplicationPage.php
770
0644
edit
dl
rm
AuthorizedConnectAppContext.php
1930
0644
edit
dl
rm
AuthorizedConnectAppInstance.php
4356
0644
edit
dl
rm
AuthorizedConnectAppList.php
5219
0644
edit
dl
rm
AuthorizedConnectAppPage.php
797
0644
edit
dl
rm
AvailablePhoneNumberCountryContext.php
7792
0644
edit
dl
rm
AvailablePhoneNumberCountryInstance.php
5422
0644
edit
dl
rm
AvailablePhoneNumberCountryList.php
5380
0644
edit
dl
rm
AvailablePhoneNumberCountryPage.php
864
0644
edit
dl
rm
CallContext.php
6217
0644
edit
dl
rm
CallInstance.php
6697
0644
edit
dl
rm
CallList.php
9916
0644
edit
dl
rm
CallOptions.php
29018
0644
edit
dl
rm
CallPage.php
749
0644
edit
dl
rm
ConferenceContext.php
4520
0644
edit
dl
rm
ConferenceInstance.php
4473
0644
edit
dl
rm
ConferenceList.php
5895
0644
edit
dl
rm
ConferenceOptions.php
8333
0644
edit
dl
rm
ConferencePage.php
767
0644
edit
dl
rm
ConnectAppContext.php
3020
0644
edit
dl
rm
ConnectAppInstance.php
4369
0644
edit
dl
rm
ConnectAppList.php
4971
0644
edit
dl
rm
ConnectAppOptions.php
7067
0644
edit
dl
rm
ConnectAppPage.php
767
0644
edit
dl
rm
IncomingPhoneNumberContext.php
6136
0644
edit
dl
rm
IncomingPhoneNumberInstance.php
7219
0644
edit
dl
rm
IncomingPhoneNumberList.php
10084
0644
edit
dl
rm
IncomingPhoneNumberOptions.php
37289
0644
edit
dl
rm
IncomingPhoneNumberPage.php
794
0644
edit
dl
rm
KeyContext.php
2589
0644
edit
dl
rm
KeyInstance.php
3755
0644
edit
dl
rm
KeyList.php
4879
0644
edit
dl
rm
KeyOptions.php
1421
0644
edit
dl
rm
KeyPage.php
746
0644
edit
dl
rm
MessageContext.php
4940
0644
edit
dl
rm
MessageInstance.php
5776
0644
edit
dl
rm
MessageList.php
7171
0644
edit
dl
rm
MessageOptions.php
12222
0644
edit
dl
rm
MessagePage.php
758
0644
edit
dl
rm
NewKeyInstance.php
2327
0644
edit
dl
rm
NewKeyList.php
1665
0644
edit
dl
rm
NewKeyOptions.php
1436
0644
edit
dl
rm
NewKeyPage.php
755
0644
edit
dl
rm
NewSigningKeyInstance.php
2355
0644
edit
dl
rm
NewSigningKeyList.php
1728
0644
edit
dl
rm
NewSigningKeyOptions.php
1471
0644
edit
dl
rm
NewSigningKeyPage.php
776
0644
edit
dl
rm
NotificationContext.php
2038
0644
edit
dl
rm
NotificationInstance.php
4906
0644
edit
dl
rm
NotificationList.php
5622
0644
edit
dl
rm
NotificationOptions.php
3263
0644
edit
dl
rm
NotificationPage.php
773
0644
edit
dl
rm
OutgoingCallerIdContext.php
2802
0644
edit
dl
rm
OutgoingCallerIdInstance.php
4290
0644
edit
dl
rm
OutgoingCallerIdList.php
5499
0644
edit
dl
rm
OutgoingCallerIdOptions.php
3468
0644
edit
dl
rm
OutgoingCallerIdPage.php
785
0644
edit
dl
rm
QueueContext.php
4529
0644
edit
dl
rm
QueueInstance.php
4462
0644
edit
dl
rm
QueueList.php
5611
0644
edit
dl
rm
QueueOptions.php
3419
0644
edit
dl
rm
QueuePage.php
752
0644
edit
dl
rm
RecordingContext.php
4665
0644
edit
dl
rm
RecordingInstance.php
5332
0644
edit
dl
rm
RecordingList.php
5646
0644
edit
dl
rm
RecordingOptions.php
3917
0644
edit
dl
rm
RecordingPage.php
764
0644
edit
dl
rm
ShortCodeContext.php
2769
0644
edit
dl
rm
ShortCodeInstance.php
4432
0644
edit
dl
rm
ShortCodeList.php
5372
0644
edit
dl
rm
ShortCodeOptions.php
7057
0644
edit
dl
rm
ShortCodePage.php
764
0644
edit
dl
rm
SigningKeyContext.php
2687
0644
edit
dl
rm
SigningKeyInstance.php
3860
0644
edit
dl
rm
SigningKeyList.php
4998
0644
edit
dl
rm
SigningKeyOptions.php
1456
0644
edit
dl
rm
SigningKeyPage.php
767
0644
edit
dl
rm
SipInstance.php
1660
0644
edit
dl
rm
SipList.php
3878
0644
edit
dl
rm
SipPage.php
746
0644
edit
dl
rm
TokenInstance.php
2471
0644
edit
dl
rm
TokenList.php
1590
0644
edit
dl
rm
TokenOptions.php
1474
0644
edit
dl
rm
TokenPage.php
752
0644
edit
dl
rm
TranscriptionContext.php
2049
0644
edit
dl
rm
TranscriptionInstance.php
4436
0644
edit
dl
rm
TranscriptionList.php
5024
0644
edit
dl
rm
TranscriptionPage.php
776
0644
edit
dl
rm
UsageInstance.php
1668
0644
edit
dl
rm
UsageList.php
3044
0644
edit
dl
rm
UsagePage.php
752
0644
edit
dl
rm
ValidationRequestInstance.php
2252
0644
edit
dl
rm
ValidationRequestList.php
2048
0644
edit
dl
rm
ValidationRequestOptions.php
3610
0644
edit
dl
rm
ValidationRequestPage.php
788
0644
edit
dl
rm
Edit:
/home/desid573/public_html/test_api/twilio-php-master/Twilio/Rest/Api/V2010/Account/CallOptions.php
(29018B)
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\Api\V2010\Account; use Twilio\Options; use Twilio\Values; abstract class CallOptions { /** * @param string $url Url from which to fetch TwiML * @param string $applicationSid ApplicationSid that configures from where to * fetch TwiML * @param string $method HTTP method to use to fetch TwiML * @param string $fallbackUrl Fallback URL in case of error * @param string $fallbackMethod HTTP Method to use with FallbackUrl * @param string $statusCallback Status Callback URL * @param string $statusCallbackEvent The status_callback_event * @param string $statusCallbackMethod HTTP Method to use with StatusCallback * @param string $sendDigits Digits to send * @param string $ifMachine Action to take if a machine has answered the call * @param integer $timeout Number of seconds to wait for an answer * @param boolean $record Whether or not to record the Call * @param string $recordingChannels The recording_channels * @param string $recordingStatusCallback The recording_status_callback * @param string $recordingStatusCallbackMethod The * recording_status_callback_method * @param string $sipAuthUsername The sip_auth_username * @param string $sipAuthPassword The sip_auth_password * @param string $machineDetection Enable machine detection or end of greeting * detection * @param integer $machineDetectionTimeout Number of miliseconds to wait for * machine detection * @param string $recordingStatusCallbackEvent The * recording_status_callback_event * @param string $trim Set this parameter to control trimming of silence on the * recording. * @param string $callerId The phone number, SIP address or Client identifier * that made this Call. Phone numbers are in E.164 * format (e.g. +16175551212). SIP addresses are * formatted as `name@company.com`. * @return CreateCallOptions Options builder */ public static function create($url = Values::NONE, $applicationSid = Values::NONE, $method = Values::NONE, $fallbackUrl = Values::NONE, $fallbackMethod = Values::NONE, $statusCallback = Values::NONE, $statusCallbackEvent = Values::NONE, $statusCallbackMethod = Values::NONE, $sendDigits = Values::NONE, $ifMachine = Values::NONE, $timeout = Values::NONE, $record = Values::NONE, $recordingChannels = Values::NONE, $recordingStatusCallback = Values::NONE, $recordingStatusCallbackMethod = Values::NONE, $sipAuthUsername = Values::NONE, $sipAuthPassword = Values::NONE, $machineDetection = Values::NONE, $machineDetectionTimeout = Values::NONE, $recordingStatusCallbackEvent = Values::NONE, $trim = Values::NONE, $callerId = Values::NONE) { return new CreateCallOptions($url, $applicationSid, $method, $fallbackUrl, $fallbackMethod, $statusCallback, $statusCallbackEvent, $statusCallbackMethod, $sendDigits, $ifMachine, $timeout, $record, $recordingChannels, $recordingStatusCallback, $recordingStatusCallbackMethod, $sipAuthUsername, $sipAuthPassword, $machineDetection, $machineDetectionTimeout, $recordingStatusCallbackEvent, $trim, $callerId); } /** * @param string $to Phone number or Client identifier to filter `to` on * @param string $from Phone number or Client identifier to filter `from` on * @param string $parentCallSid Parent Call Sid to filter on * @param string $status Status to filter on * @param string $startTimeBefore StartTime to filter on * @param string $startTime StartTime to filter on * @param string $startTimeAfter StartTime to filter on * @param string $endTimeBefore EndTime to filter on * @param string $endTime EndTime to filter on * @param string $endTimeAfter EndTime to filter on * @return ReadCallOptions Options builder */ public static function read($to = Values::NONE, $from = Values::NONE, $parentCallSid = Values::NONE, $status = Values::NONE, $startTimeBefore = Values::NONE, $startTime = Values::NONE, $startTimeAfter = Values::NONE, $endTimeBefore = Values::NONE, $endTime = Values::NONE, $endTimeAfter = Values::NONE) { return new ReadCallOptions($to, $from, $parentCallSid, $status, $startTimeBefore, $startTime, $startTimeAfter, $endTimeBefore, $endTime, $endTimeAfter); } /** * @param string $url URL that returns TwiML * @param string $method HTTP method to use to fetch TwiML * @param string $status Status to update the Call with * @param string $fallbackUrl Fallback URL in case of error * @param string $fallbackMethod HTTP Method to use with FallbackUrl * @param string $statusCallback Status Callback URL * @param string $statusCallbackMethod HTTP Method to use with StatusCallback * @return UpdateCallOptions Options builder */ public static function update($url = Values::NONE, $method = Values::NONE, $status = Values::NONE, $fallbackUrl = Values::NONE, $fallbackMethod = Values::NONE, $statusCallback = Values::NONE, $statusCallbackMethod = Values::NONE) { return new UpdateCallOptions($url, $method, $status, $fallbackUrl, $fallbackMethod, $statusCallback, $statusCallbackMethod); } } class CreateCallOptions extends Options { /** * @param string $url Url from which to fetch TwiML * @param string $applicationSid ApplicationSid that configures from where to * fetch TwiML * @param string $method HTTP method to use to fetch TwiML * @param string $fallbackUrl Fallback URL in case of error * @param string $fallbackMethod HTTP Method to use with FallbackUrl * @param string $statusCallback Status Callback URL * @param string $statusCallbackEvent The status_callback_event * @param string $statusCallbackMethod HTTP Method to use with StatusCallback * @param string $sendDigits Digits to send * @param string $ifMachine Action to take if a machine has answered the call * @param integer $timeout Number of seconds to wait for an answer * @param boolean $record Whether or not to record the Call * @param string $recordingChannels The recording_channels * @param string $recordingStatusCallback The recording_status_callback * @param string $recordingStatusCallbackMethod The * recording_status_callback_method * @param string $sipAuthUsername The sip_auth_username * @param string $sipAuthPassword The sip_auth_password * @param string $machineDetection Enable machine detection or end of greeting * detection * @param integer $machineDetectionTimeout Number of miliseconds to wait for * machine detection * @param string $recordingStatusCallbackEvent The * recording_status_callback_event * @param string $trim Set this parameter to control trimming of silence on the * recording. * @param string $callerId The phone number, SIP address or Client identifier * that made this Call. Phone numbers are in E.164 * format (e.g. +16175551212). SIP addresses are * formatted as `name@company.com`. */ public function __construct($url = Values::NONE, $applicationSid = Values::NONE, $method = Values::NONE, $fallbackUrl = Values::NONE, $fallbackMethod = Values::NONE, $statusCallback = Values::NONE, $statusCallbackEvent = Values::NONE, $statusCallbackMethod = Values::NONE, $sendDigits = Values::NONE, $ifMachine = Values::NONE, $timeout = Values::NONE, $record = Values::NONE, $recordingChannels = Values::NONE, $recordingStatusCallback = Values::NONE, $recordingStatusCallbackMethod = Values::NONE, $sipAuthUsername = Values::NONE, $sipAuthPassword = Values::NONE, $machineDetection = Values::NONE, $machineDetectionTimeout = Values::NONE, $recordingStatusCallbackEvent = Values::NONE, $trim = Values::NONE, $callerId = Values::NONE) { $this->options['url'] = $url; $this->options['applicationSid'] = $applicationSid; $this->options['method'] = $method; $this->options['fallbackUrl'] = $fallbackUrl; $this->options['fallbackMethod'] = $fallbackMethod; $this->options['statusCallback'] = $statusCallback; $this->options['statusCallbackEvent'] = $statusCallbackEvent; $this->options['statusCallbackMethod'] = $statusCallbackMethod; $this->options['sendDigits'] = $sendDigits; $this->options['ifMachine'] = $ifMachine; $this->options['timeout'] = $timeout; $this->options['record'] = $record; $this->options['recordingChannels'] = $recordingChannels; $this->options['recordingStatusCallback'] = $recordingStatusCallback; $this->options['recordingStatusCallbackMethod'] = $recordingStatusCallbackMethod; $this->options['sipAuthUsername'] = $sipAuthUsername; $this->options['sipAuthPassword'] = $sipAuthPassword; $this->options['machineDetection'] = $machineDetection; $this->options['machineDetectionTimeout'] = $machineDetectionTimeout; $this->options['recordingStatusCallbackEvent'] = $recordingStatusCallbackEvent; $this->options['trim'] = $trim; $this->options['callerId'] = $callerId; } /** * The fully qualified URL that should be consulted when the call connects. Just like when you set a URL on a phone number for handling inbound calls. * * @param string $url Url from which to fetch TwiML * @return $this Fluent Builder */ public function setUrl($url) { $this->options['url'] = $url; return $this; } /** * The 34 character sid of the application Twilio should use to handle this phone call. If this parameter is present, Twilio will ignore all of the voice URLs passed and use the URLs set on the application. * * @param string $applicationSid ApplicationSid that configures from where to * fetch TwiML * @return $this Fluent Builder */ public function setApplicationSid($applicationSid) { $this->options['applicationSid'] = $applicationSid; return $this; } /** * The HTTP method Twilio should use when requesting the URL. Defaults to `POST`. If an `ApplicationSid` was provided, this parameter is ignored. * * @param string $method HTTP method to use to fetch TwiML * @return $this Fluent Builder */ public function setMethod($method) { $this->options['method'] = $method; return $this; } /** * A URL that Twilio will request if an error occurs requesting or executing the TwiML at `Url`. If an `ApplicationSid` was provided, this parameter is ignored. * * @param string $fallbackUrl Fallback URL in case of error * @return $this Fluent Builder */ public function setFallbackUrl($fallbackUrl) { $this->options['fallbackUrl'] = $fallbackUrl; return $this; } /** * The HTTP method that Twilio should use to request the `FallbackUrl`. Must be either `GET` or `POST`. Defaults to `POST`. If an `ApplicationSid` was provided, this parameter is ignored. * * @param string $fallbackMethod HTTP Method to use with FallbackUrl * @return $this Fluent Builder */ public function setFallbackMethod($fallbackMethod) { $this->options['fallbackMethod'] = $fallbackMethod; return $this; } /** * A URL that Twilio will request when the call ends to notify your app. If an `ApplicationSid` was provided, this parameter is ignored. * * @param string $statusCallback Status Callback URL * @return $this Fluent Builder */ public function setStatusCallback($statusCallback) { $this->options['statusCallback'] = $statusCallback; return $this; } /** * The status_callback_event * * @param string $statusCallbackEvent The status_callback_event * @return $this Fluent Builder */ public function setStatusCallbackEvent($statusCallbackEvent) { $this->options['statusCallbackEvent'] = $statusCallbackEvent; return $this; } /** * The HTTP method that Twilio should use to request the `StatusCallback`. Defaults to `POST`. If an `ApplicationSid` was provided, this parameter is ignored. * * @param string $statusCallbackMethod HTTP Method to use with StatusCallback * @return $this Fluent Builder */ public function setStatusCallbackMethod($statusCallbackMethod) { $this->options['statusCallbackMethod'] = $statusCallbackMethod; return $this; } /** * A string of keys to dial after connecting to the number. Valid digits in the string include: any digit (`0`-`9`), '`#`', '`*`' and '`w`' (to insert a half second pause). For example, if you connected to a company phone number, and wanted to pause for one second, dial extension 1234 and then the pound key, use `ww1234#`. * * @param string $sendDigits Digits to send * @return $this Fluent Builder */ public function setSendDigits($sendDigits) { $this->options['sendDigits'] = $sendDigits; return $this; } /** * Tell Twilio to try and determine if a machine (like voicemail) or a human has answered the call. Possible value are `Continue` and `Hangup`. * * @param string $ifMachine Action to take if a machine has answered the call * @return $this Fluent Builder */ public function setIfMachine($ifMachine) { $this->options['ifMachine'] = $ifMachine; return $this; } /** * The integer number of seconds that Twilio should allow the phone to ring before assuming there is no answer. Default is `60` seconds, the maximum is `999` seconds. Note, you could set this to a low value, such as `15`, to hangup before reaching an answering machine or voicemail. * * @param integer $timeout Number of seconds to wait for an answer * @return $this Fluent Builder */ public function setTimeout($timeout) { $this->options['timeout'] = $timeout; return $this; } /** * Set this parameter to true to record the entirety of a phone call. The RecordingUrl will be sent to the StatusCallback URL. Defaults to false. * * @param boolean $record Whether or not to record the Call * @return $this Fluent Builder */ public function setRecord($record) { $this->options['record'] = $record; return $this; } /** * The recording_channels * * @param string $recordingChannels The recording_channels * @return $this Fluent Builder */ public function setRecordingChannels($recordingChannels) { $this->options['recordingChannels'] = $recordingChannels; return $this; } /** * The recording_status_callback * * @param string $recordingStatusCallback The recording_status_callback * @return $this Fluent Builder */ public function setRecordingStatusCallback($recordingStatusCallback) { $this->options['recordingStatusCallback'] = $recordingStatusCallback; return $this; } /** * The recording_status_callback_method * * @param string $recordingStatusCallbackMethod The * recording_status_callback_method * @return $this Fluent Builder */ public function setRecordingStatusCallbackMethod($recordingStatusCallbackMethod) { $this->options['recordingStatusCallbackMethod'] = $recordingStatusCallbackMethod; return $this; } /** * The sip_auth_username * * @param string $sipAuthUsername The sip_auth_username * @return $this Fluent Builder */ public function setSipAuthUsername($sipAuthUsername) { $this->options['sipAuthUsername'] = $sipAuthUsername; return $this; } /** * The sip_auth_password * * @param string $sipAuthPassword The sip_auth_password * @return $this Fluent Builder */ public function setSipAuthPassword($sipAuthPassword) { $this->options['sipAuthPassword'] = $sipAuthPassword; return $this; } /** * Twilio will try to detect if a human, fax machine or answering machine has answered the call. Possible value are `Enable` and `DetectMessageEnd`. * * @param string $machineDetection Enable machine detection or end of greeting * detection * @return $this Fluent Builder */ public function setMachineDetection($machineDetection) { $this->options['machineDetection'] = $machineDetection; return $this; } /** * The integer number of miliseconds that Twilio should wait while machine_detection is performned before timing out. * * @param integer $machineDetectionTimeout Number of miliseconds to wait for * machine detection * @return $this Fluent Builder */ public function setMachineDetectionTimeout($machineDetectionTimeout) { $this->options['machineDetectionTimeout'] = $machineDetectionTimeout; return $this; } /** * The recording_status_callback_event * * @param string $recordingStatusCallbackEvent The * recording_status_callback_event * @return $this Fluent Builder */ public function setRecordingStatusCallbackEvent($recordingStatusCallbackEvent) { $this->options['recordingStatusCallbackEvent'] = $recordingStatusCallbackEvent; return $this; } /** * Set this parameter to control trimming of silence on the recording. Possible values are `trim-silence` or `do-not-trim`. Defaults to `trim-silence`. * * @param string $trim Set this parameter to control trimming of silence on the * recording. * @return $this Fluent Builder */ public function setTrim($trim) { $this->options['trim'] = $trim; return $this; } /** * The phone number, SIP address or Client identifier that made this Call. Phone numbers are in E.164 format (e.g. +16175551212). SIP addresses are formatted as `name@company.com`. * * @param string $callerId The phone number, SIP address or Client identifier * that made this Call. Phone numbers are in E.164 * format (e.g. +16175551212). SIP addresses are * formatted as `name@company.com`. * @return $this Fluent Builder */ public function setCallerId($callerId) { $this->options['callerId'] = $callerId; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Api.V2010.CreateCallOptions ' . implode(' ', $options) . ']'; } } class ReadCallOptions extends Options { /** * @param string $to Phone number or Client identifier to filter `to` on * @param string $from Phone number or Client identifier to filter `from` on * @param string $parentCallSid Parent Call Sid to filter on * @param string $status Status to filter on * @param string $startTimeBefore StartTime to filter on * @param string $startTime StartTime to filter on * @param string $startTimeAfter StartTime to filter on * @param string $endTimeBefore EndTime to filter on * @param string $endTime EndTime to filter on * @param string $endTimeAfter EndTime to filter on */ public function __construct($to = Values::NONE, $from = Values::NONE, $parentCallSid = Values::NONE, $status = Values::NONE, $startTimeBefore = Values::NONE, $startTime = Values::NONE, $startTimeAfter = Values::NONE, $endTimeBefore = Values::NONE, $endTime = Values::NONE, $endTimeAfter = Values::NONE) { $this->options['to'] = $to; $this->options['from'] = $from; $this->options['parentCallSid'] = $parentCallSid; $this->options['status'] = $status; $this->options['startTimeBefore'] = $startTimeBefore; $this->options['startTime'] = $startTime; $this->options['startTimeAfter'] = $startTimeAfter; $this->options['endTimeBefore'] = $endTimeBefore; $this->options['endTime'] = $endTime; $this->options['endTimeAfter'] = $endTimeAfter; } /** * Only show calls to this phone number or Client identifier * * @param string $to Phone number or Client identifier to filter `to` on * @return $this Fluent Builder */ public function setTo($to) { $this->options['to'] = $to; return $this; } /** * Only show calls from this phone number or Client identifier * * @param string $from Phone number or Client identifier to filter `from` on * @return $this Fluent Builder */ public function setFrom($from) { $this->options['from'] = $from; return $this; } /** * Only show calls spawned by the call with this Sid * * @param string $parentCallSid Parent Call Sid to filter on * @return $this Fluent Builder */ public function setParentCallSid($parentCallSid) { $this->options['parentCallSid'] = $parentCallSid; return $this; } /** * Only show calls currently in this status * * @param string $status Status to filter on * @return $this Fluent Builder */ public function setStatus($status) { $this->options['status'] = $status; return $this; } /** * Only show calls that started on this date * * @param string $startTimeBefore StartTime to filter on * @return $this Fluent Builder */ public function setStartTimeBefore($startTimeBefore) { $this->options['startTimeBefore'] = $startTimeBefore; return $this; } /** * Only show calls that started on this date * * @param string $startTime StartTime to filter on * @return $this Fluent Builder */ public function setStartTime($startTime) { $this->options['startTime'] = $startTime; return $this; } /** * Only show calls that started on this date * * @param string $startTimeAfter StartTime to filter on * @return $this Fluent Builder */ public function setStartTimeAfter($startTimeAfter) { $this->options['startTimeAfter'] = $startTimeAfter; return $this; } /** * Only show call that ended on this date * * @param string $endTimeBefore EndTime to filter on * @return $this Fluent Builder */ public function setEndTimeBefore($endTimeBefore) { $this->options['endTimeBefore'] = $endTimeBefore; return $this; } /** * Only show call that ended on this date * * @param string $endTime EndTime to filter on * @return $this Fluent Builder */ public function setEndTime($endTime) { $this->options['endTime'] = $endTime; return $this; } /** * Only show call that ended on this date * * @param string $endTimeAfter EndTime to filter on * @return $this Fluent Builder */ public function setEndTimeAfter($endTimeAfter) { $this->options['endTimeAfter'] = $endTimeAfter; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Api.V2010.ReadCallOptions ' . implode(' ', $options) . ']'; } } class UpdateCallOptions extends Options { /** * @param string $url URL that returns TwiML * @param string $method HTTP method to use to fetch TwiML * @param string $status Status to update the Call with * @param string $fallbackUrl Fallback URL in case of error * @param string $fallbackMethod HTTP Method to use with FallbackUrl * @param string $statusCallback Status Callback URL * @param string $statusCallbackMethod HTTP Method to use with StatusCallback */ public function __construct($url = Values::NONE, $method = Values::NONE, $status = Values::NONE, $fallbackUrl = Values::NONE, $fallbackMethod = Values::NONE, $statusCallback = Values::NONE, $statusCallbackMethod = Values::NONE) { $this->options['url'] = $url; $this->options['method'] = $method; $this->options['status'] = $status; $this->options['fallbackUrl'] = $fallbackUrl; $this->options['fallbackMethod'] = $fallbackMethod; $this->options['statusCallback'] = $statusCallback; $this->options['statusCallbackMethod'] = $statusCallbackMethod; } /** * A valid URL that returns TwiML. Twilio will immediately redirect the call to the new TwiML upon execution. * * @param string $url URL that returns TwiML * @return $this Fluent Builder */ public function setUrl($url) { $this->options['url'] = $url; return $this; } /** * The HTTP method Twilio should use when requesting the URL. Defaults to `POST`. * * @param string $method HTTP method to use to fetch TwiML * @return $this Fluent Builder */ public function setMethod($method) { $this->options['method'] = $method; return $this; } /** * Either `canceled` or `completed`. Specifying `canceled` will attempt to hangup calls that are queued or ringing but not affect calls already in progress. Specifying `completed` will attempt to hang up a call even if it's already in progress. * * @param string $status Status to update the Call with * @return $this Fluent Builder */ public function setStatus($status) { $this->options['status'] = $status; return $this; } /** * A URL that Twilio will request if an error occurs requesting or executing the TwiML at `Url`. * * @param string $fallbackUrl Fallback URL in case of error * @return $this Fluent Builder */ public function setFallbackUrl($fallbackUrl) { $this->options['fallbackUrl'] = $fallbackUrl; return $this; } /** * The HTTP method that Twilio should use to request the `FallbackUrl`. Must be either `GET` or `POST`. Defaults to `POST`. * * @param string $fallbackMethod HTTP Method to use with FallbackUrl * @return $this Fluent Builder */ public function setFallbackMethod($fallbackMethod) { $this->options['fallbackMethod'] = $fallbackMethod; return $this; } /** * A URL that Twilio will request when the call ends to notify your app. * * @param string $statusCallback Status Callback URL * @return $this Fluent Builder */ public function setStatusCallback($statusCallback) { $this->options['statusCallback'] = $statusCallback; return $this; } /** * The HTTP method that Twilio should use to request the `StatusCallback`. Defaults to `POST`. * * @param string $statusCallbackMethod HTTP Method to use with StatusCallback * @return $this Fluent Builder */ public function setStatusCallbackMethod($statusCallbackMethod) { $this->options['statusCallbackMethod'] = $statusCallbackMethod; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Api.V2010.UpdateCallOptions ' . implode(' ', $options) . ']'; } }
Save
cmd:
run