repo
stringlengths
6
63
path
stringlengths
5
140
func_name
stringlengths
3
151
original_string
stringlengths
84
13k
language
stringclasses
1 value
code
stringlengths
84
13k
code_tokens
list
docstring
stringlengths
3
47.2k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
91
247
partition
stringclasses
1 value
twilio/twilio-php
Twilio/Rest/Serverless/V1/Service/Asset/AssetVersionList.php
AssetVersionList.getContext
public function getContext($sid) { return new AssetVersionContext( $this->version, $this->solution['serviceSid'], $this->solution['assetSid'], $sid ); }
php
public function getContext($sid) { return new AssetVersionContext( $this->version, $this->solution['serviceSid'], $this->solution['assetSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "AssetVersionContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'assetSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a AssetVersionContext @param string $sid Asset Version Sid. @return \Twilio\Rest\Serverless\V1\Service\Asset\AssetVersionContext
[ "Constructs", "a", "AssetVersionContext" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Serverless/V1/Service/Asset/AssetVersionList.php#L157-L164
train
twilio/twilio-php
Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepList.php
ExecutionStepList.getContext
public function getContext($sid) { return new ExecutionStepContext( $this->version, $this->solution['flowSid'], $this->solution['executionSid'], $sid ); }
php
public function getContext($sid) { return new ExecutionStepContext( $this->version, $this->solution['flowSid'], $this->solution['executionSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "ExecutionStepContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'flowSid'", "]", ",", "$", "this", "->", "solution", "[", "'executionSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a ExecutionStepContext @param string $sid Step Sid. @return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionStepContext
[ "Constructs", "a", "ExecutionStepContext" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepList.php#L126-L133
train
twilio/twilio-php
Twilio/Rest/Preview/Sync/Service/SyncMapContext.php
SyncMapContext.getSyncMapItems
protected function getSyncMapItems() { if (!$this->_syncMapItems) { $this->_syncMapItems = new SyncMapItemList( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->_syncMapItems; }
php
protected function getSyncMapItems() { if (!$this->_syncMapItems) { $this->_syncMapItems = new SyncMapItemList( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->_syncMapItems; }
[ "protected", "function", "getSyncMapItems", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_syncMapItems", ")", "{", "$", "this", "->", "_syncMapItems", "=", "new", "SyncMapItemList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_syncMapItems", ";", "}" ]
Access the syncMapItems @return \Twilio\Rest\Preview\Sync\Service\SyncMap\SyncMapItemList
[ "Access", "the", "syncMapItems" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/Service/SyncMapContext.php#L86-L96
train
twilio/twilio-php
Twilio/Rest/Preview/Sync/Service/SyncMapContext.php
SyncMapContext.getSyncMapPermissions
protected function getSyncMapPermissions() { if (!$this->_syncMapPermissions) { $this->_syncMapPermissions = new SyncMapPermissionList( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->_syncMapPermissions; }
php
protected function getSyncMapPermissions() { if (!$this->_syncMapPermissions) { $this->_syncMapPermissions = new SyncMapPermissionList( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->_syncMapPermissions; }
[ "protected", "function", "getSyncMapPermissions", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_syncMapPermissions", ")", "{", "$", "this", "->", "_syncMapPermissions", "=", "new", "SyncMapPermissionList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_syncMapPermissions", ";", "}" ]
Access the syncMapPermissions @return \Twilio\Rest\Preview\Sync\Service\SyncMap\SyncMapPermissionList
[ "Access", "the", "syncMapPermissions" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/Service/SyncMapContext.php#L103-L113
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadList.php
PayloadList.getContext
public function getContext($sid) { return new PayloadContext( $this->version, $this->solution['accountSid'], $this->solution['referenceSid'], $this->solution['addOnResultSid'], $sid ); }
php
public function getContext($sid) { return new PayloadContext( $this->version, $this->solution['accountSid'], $this->solution['referenceSid'], $this->solution['addOnResultSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "PayloadContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'referenceSid'", "]", ",", "$", "this", "->", "solution", "[", "'addOnResultSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a PayloadContext @param string $sid The unique string that identifies the resource to fetch @return \Twilio\Rest\Api\V2010\Account\Recording\AddOnResult\PayloadContext
[ "Constructs", "a", "PayloadContext" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadList.php#L134-L142
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Usage/TriggerList.php
TriggerList.create
public function create($callbackUrl, $triggerValue, $usageCategory, $options = array()) { $options = new Values($options); $data = Values::of(array( 'CallbackUrl' => $callbackUrl, 'TriggerValue' => $triggerValue, 'UsageCategory' => $usageCategory, 'CallbackMethod' => $options['callbackMethod'], 'FriendlyName' => $options['friendlyName'], 'Recurring' => $options['recurring'], 'TriggerBy' => $options['triggerBy'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new TriggerInstance($this->version, $payload, $this->solution['accountSid']); }
php
public function create($callbackUrl, $triggerValue, $usageCategory, $options = array()) { $options = new Values($options); $data = Values::of(array( 'CallbackUrl' => $callbackUrl, 'TriggerValue' => $triggerValue, 'UsageCategory' => $usageCategory, 'CallbackMethod' => $options['callbackMethod'], 'FriendlyName' => $options['friendlyName'], 'Recurring' => $options['recurring'], 'TriggerBy' => $options['triggerBy'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new TriggerInstance($this->version, $payload, $this->solution['accountSid']); }
[ "public", "function", "create", "(", "$", "callbackUrl", ",", "$", "triggerValue", ",", "$", "usageCategory", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'CallbackUrl'", "=>", "$", "callbackUrl", ",", "'TriggerValue'", "=>", "$", "triggerValue", ",", "'UsageCategory'", "=>", "$", "usageCategory", ",", "'CallbackMethod'", "=>", "$", "options", "[", "'callbackMethod'", "]", ",", "'FriendlyName'", "=>", "$", "options", "[", "'friendlyName'", "]", ",", "'Recurring'", "=>", "$", "options", "[", "'recurring'", "]", ",", "'TriggerBy'", "=>", "$", "options", "[", "'triggerBy'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "TriggerInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}" ]
Create a new TriggerInstance @param string $callbackUrl The URL we call when the trigger fires @param string $triggerValue The usage value at which the trigger should fire @param string $usageCategory The usage category the trigger watches @param array|Options $options Optional Arguments @return TriggerInstance Newly created TriggerInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "TriggerInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Usage/TriggerList.php#L45-L66
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingList.php
AuthRegistrationsCredentialListMappingList.create
public function create($credentialListSid) { $data = Values::of(array('CredentialListSid' => $credentialListSid, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new AuthRegistrationsCredentialListMappingInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['domainSid'] ); }
php
public function create($credentialListSid) { $data = Values::of(array('CredentialListSid' => $credentialListSid, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new AuthRegistrationsCredentialListMappingInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['domainSid'] ); }
[ "public", "function", "create", "(", "$", "credentialListSid", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'CredentialListSid'", "=>", "$", "credentialListSid", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "AuthRegistrationsCredentialListMappingInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'domainSid'", "]", ")", ";", "}" ]
Create a new AuthRegistrationsCredentialListMappingInstance @param string $credentialListSid The SID of the CredentialList resource to map to the SIP domain @return AuthRegistrationsCredentialListMappingInstance Newly created AuthRegistrationsCredentialListMappingInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "AuthRegistrationsCredentialListMappingInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingList.php#L43-L59
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingList.php
AuthRegistrationsCredentialListMappingList.getContext
public function getContext($sid) { return new AuthRegistrationsCredentialListMappingContext( $this->version, $this->solution['accountSid'], $this->solution['domainSid'], $sid ); }
php
public function getContext($sid) { return new AuthRegistrationsCredentialListMappingContext( $this->version, $this->solution['accountSid'], $this->solution['domainSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "AuthRegistrationsCredentialListMappingContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'domainSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a AuthRegistrationsCredentialListMappingContext @param string $sid The unique string that identifies the resource @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\AuthTypes\AuthTypeRegistrations\AuthRegistrationsCredentialListMappingContext
[ "Constructs", "a", "AuthRegistrationsCredentialListMappingContext" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingList.php#L157-L164
train
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsContext.php
WorkerStatisticsContext.fetch
public function fetch($options = array()) { $options = new Values($options); $params = Values::of(array( 'Minutes' => $options['minutes'], 'StartDate' => Serialize::iso8601DateTime($options['startDate']), 'EndDate' => Serialize::iso8601DateTime($options['endDate']), 'TaskChannel' => $options['taskChannel'], )); $payload = $this->version->fetch( 'GET', $this->uri, $params ); return new WorkerStatisticsInstance( $this->version, $payload, $this->solution['workspaceSid'], $this->solution['workerSid'] ); }
php
public function fetch($options = array()) { $options = new Values($options); $params = Values::of(array( 'Minutes' => $options['minutes'], 'StartDate' => Serialize::iso8601DateTime($options['startDate']), 'EndDate' => Serialize::iso8601DateTime($options['endDate']), 'TaskChannel' => $options['taskChannel'], )); $payload = $this->version->fetch( 'GET', $this->uri, $params ); return new WorkerStatisticsInstance( $this->version, $payload, $this->solution['workspaceSid'], $this->solution['workerSid'] ); }
[ "public", "function", "fetch", "(", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "params", "=", "Values", "::", "of", "(", "array", "(", "'Minutes'", "=>", "$", "options", "[", "'minutes'", "]", ",", "'StartDate'", "=>", "Serialize", "::", "iso8601DateTime", "(", "$", "options", "[", "'startDate'", "]", ")", ",", "'EndDate'", "=>", "Serialize", "::", "iso8601DateTime", "(", "$", "options", "[", "'endDate'", "]", ")", ",", "'TaskChannel'", "=>", "$", "options", "[", "'taskChannel'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "fetch", "(", "'GET'", ",", "$", "this", "->", "uri", ",", "$", "params", ")", ";", "return", "new", "WorkerStatisticsInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ",", "$", "this", "->", "solution", "[", "'workerSid'", "]", ")", ";", "}" ]
Fetch a WorkerStatisticsInstance @param array|Options $options Optional Arguments @return WorkerStatisticsInstance Fetched WorkerStatisticsInstance @throws TwilioException When an HTTP error occurs.
[ "Fetch", "a", "WorkerStatisticsInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsContext.php#L43-L65
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/DomainContext.php
DomainContext.getAuth
protected function getAuth() { if (!$this->_auth) { $this->_auth = new AuthTypesList( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->_auth; }
php
protected function getAuth() { if (!$this->_auth) { $this->_auth = new AuthTypesList( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->_auth; }
[ "protected", "function", "getAuth", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_auth", ")", "{", "$", "this", "->", "_auth", "=", "new", "AuthTypesList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_auth", ";", "}" ]
Access the auth @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\AuthTypesList
[ "Access", "the", "auth" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/DomainContext.php#L161-L171
train
twilio/twilio-php
Twilio/Version.php
Version.exception
protected function exception($response, $header) { $message = '[HTTP ' . $response->getStatusCode() . '] ' . $header; $content = $response->getContent(); if (is_array($content)) { $message .= isset($content['message']) ? ': ' . $content['message'] : ''; $code = isset($content['code']) ? $content['code'] : $response->getStatusCode(); return new RestException($message, $code, $response->getStatusCode()); } else { return new RestException($message, $response->getStatusCode(), $response->getStatusCode()); } }
php
protected function exception($response, $header) { $message = '[HTTP ' . $response->getStatusCode() . '] ' . $header; $content = $response->getContent(); if (is_array($content)) { $message .= isset($content['message']) ? ': ' . $content['message'] : ''; $code = isset($content['code']) ? $content['code'] : $response->getStatusCode(); return new RestException($message, $code, $response->getStatusCode()); } else { return new RestException($message, $response->getStatusCode(), $response->getStatusCode()); } }
[ "protected", "function", "exception", "(", "$", "response", ",", "$", "header", ")", "{", "$", "message", "=", "'[HTTP '", ".", "$", "response", "->", "getStatusCode", "(", ")", ".", "'] '", ".", "$", "header", ";", "$", "content", "=", "$", "response", "->", "getContent", "(", ")", ";", "if", "(", "is_array", "(", "$", "content", ")", ")", "{", "$", "message", ".=", "isset", "(", "$", "content", "[", "'message'", "]", ")", "?", "': '", ".", "$", "content", "[", "'message'", "]", ":", "''", ";", "$", "code", "=", "isset", "(", "$", "content", "[", "'code'", "]", ")", "?", "$", "content", "[", "'code'", "]", ":", "$", "response", "->", "getStatusCode", "(", ")", ";", "return", "new", "RestException", "(", "$", "message", ",", "$", "code", ",", "$", "response", "->", "getStatusCode", "(", ")", ")", ";", "}", "else", "{", "return", "new", "RestException", "(", "$", "message", ",", "$", "response", "->", "getStatusCode", "(", ")", ",", "$", "response", "->", "getStatusCode", "(", ")", ")", ";", "}", "}" ]
Create the best possible exception for the response. Attempts to parse the response for Twilio Standard error messages and use those to populate the exception, falls back to generic error message and HTTP status code. @param Response $response Error response @param string $header Header for exception message @return TwilioException
[ "Create", "the", "best", "possible", "exception", "for", "the", "response", "." ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Version.php#L78-L89
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingList.php
AuthCallsCredentialListMappingList.getContext
public function getContext($sid) { return new AuthCallsCredentialListMappingContext( $this->version, $this->solution['accountSid'], $this->solution['domainSid'], $sid ); }
php
public function getContext($sid) { return new AuthCallsCredentialListMappingContext( $this->version, $this->solution['accountSid'], $this->solution['domainSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "AuthCallsCredentialListMappingContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'domainSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a AuthCallsCredentialListMappingContext @param string $sid The unique string that identifies the resource @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\AuthTypes\AuthTypeCalls\AuthCallsCredentialListMappingContext
[ "Constructs", "a", "AuthCallsCredentialListMappingContext" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingList.php#L156-L163
train
twilio/twilio-php
Twilio/Rest/Studio/V1/Flow/Engagement/StepList.php
StepList.getContext
public function getContext($sid) { return new StepContext( $this->version, $this->solution['flowSid'], $this->solution['engagementSid'], $sid ); }
php
public function getContext($sid) { return new StepContext( $this->version, $this->solution['flowSid'], $this->solution['engagementSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "StepContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'flowSid'", "]", ",", "$", "this", "->", "solution", "[", "'engagementSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a StepContext @param string $sid Step Sid. @return \Twilio\Rest\Studio\V1\Flow\Engagement\StepContext
[ "Constructs", "a", "StepContext" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Studio/V1/Flow/Engagement/StepList.php#L126-L133
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileList.php
MobileList.page
public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) { $options = new Values($options); $params = Values::of(array( 'AreaCode' => $options['areaCode'], 'Contains' => $options['contains'], 'SmsEnabled' => Serialize::booleanToString($options['smsEnabled']), 'MmsEnabled' => Serialize::booleanToString($options['mmsEnabled']), 'VoiceEnabled' => Serialize::booleanToString($options['voiceEnabled']), 'ExcludeAllAddressRequired' => Serialize::booleanToString($options['excludeAllAddressRequired']), 'ExcludeLocalAddressRequired' => Serialize::booleanToString($options['excludeLocalAddressRequired']), 'ExcludeForeignAddressRequired' => Serialize::booleanToString($options['excludeForeignAddressRequired']), 'Beta' => Serialize::booleanToString($options['beta']), 'NearNumber' => $options['nearNumber'], 'NearLatLong' => $options['nearLatLong'], 'Distance' => $options['distance'], 'InPostalCode' => $options['inPostalCode'], 'InRegion' => $options['inRegion'], 'InRateCenter' => $options['inRateCenter'], 'InLata' => $options['inLata'], 'InLocality' => $options['inLocality'], 'FaxEnabled' => Serialize::booleanToString($options['faxEnabled']), 'PageToken' => $pageToken, 'Page' => $pageNumber, 'PageSize' => $pageSize, )); $response = $this->version->page( 'GET', $this->uri, $params ); return new MobilePage($this->version, $response, $this->solution); }
php
public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) { $options = new Values($options); $params = Values::of(array( 'AreaCode' => $options['areaCode'], 'Contains' => $options['contains'], 'SmsEnabled' => Serialize::booleanToString($options['smsEnabled']), 'MmsEnabled' => Serialize::booleanToString($options['mmsEnabled']), 'VoiceEnabled' => Serialize::booleanToString($options['voiceEnabled']), 'ExcludeAllAddressRequired' => Serialize::booleanToString($options['excludeAllAddressRequired']), 'ExcludeLocalAddressRequired' => Serialize::booleanToString($options['excludeLocalAddressRequired']), 'ExcludeForeignAddressRequired' => Serialize::booleanToString($options['excludeForeignAddressRequired']), 'Beta' => Serialize::booleanToString($options['beta']), 'NearNumber' => $options['nearNumber'], 'NearLatLong' => $options['nearLatLong'], 'Distance' => $options['distance'], 'InPostalCode' => $options['inPostalCode'], 'InRegion' => $options['inRegion'], 'InRateCenter' => $options['inRateCenter'], 'InLata' => $options['inLata'], 'InLocality' => $options['inLocality'], 'FaxEnabled' => Serialize::booleanToString($options['faxEnabled']), 'PageToken' => $pageToken, 'Page' => $pageNumber, 'PageSize' => $pageSize, )); $response = $this->version->page( 'GET', $this->uri, $params ); return new MobilePage($this->version, $response, $this->solution); }
[ "public", "function", "page", "(", "$", "options", "=", "array", "(", ")", ",", "$", "pageSize", "=", "Values", "::", "NONE", ",", "$", "pageToken", "=", "Values", "::", "NONE", ",", "$", "pageNumber", "=", "Values", "::", "NONE", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "params", "=", "Values", "::", "of", "(", "array", "(", "'AreaCode'", "=>", "$", "options", "[", "'areaCode'", "]", ",", "'Contains'", "=>", "$", "options", "[", "'contains'", "]", ",", "'SmsEnabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'smsEnabled'", "]", ")", ",", "'MmsEnabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'mmsEnabled'", "]", ")", ",", "'VoiceEnabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'voiceEnabled'", "]", ")", ",", "'ExcludeAllAddressRequired'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'excludeAllAddressRequired'", "]", ")", ",", "'ExcludeLocalAddressRequired'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'excludeLocalAddressRequired'", "]", ")", ",", "'ExcludeForeignAddressRequired'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'excludeForeignAddressRequired'", "]", ")", ",", "'Beta'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'beta'", "]", ")", ",", "'NearNumber'", "=>", "$", "options", "[", "'nearNumber'", "]", ",", "'NearLatLong'", "=>", "$", "options", "[", "'nearLatLong'", "]", ",", "'Distance'", "=>", "$", "options", "[", "'distance'", "]", ",", "'InPostalCode'", "=>", "$", "options", "[", "'inPostalCode'", "]", ",", "'InRegion'", "=>", "$", "options", "[", "'inRegion'", "]", ",", "'InRateCenter'", "=>", "$", "options", "[", "'inRateCenter'", "]", ",", "'InLata'", "=>", "$", "options", "[", "'inLata'", "]", ",", "'InLocality'", "=>", "$", "options", "[", "'inLocality'", "]", ",", "'FaxEnabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'faxEnabled'", "]", ")", ",", "'PageToken'", "=>", "$", "pageToken", ",", "'Page'", "=>", "$", "pageNumber", ",", "'PageSize'", "=>", "$", "pageSize", ",", ")", ")", ";", "$", "response", "=", "$", "this", "->", "version", "->", "page", "(", "'GET'", ",", "$", "this", "->", "uri", ",", "$", "params", ")", ";", "return", "new", "MobilePage", "(", "$", "this", "->", "version", ",", "$", "response", ",", "$", "this", "->", "solution", ")", ";", "}" ]
Retrieve a single page of MobileInstance records from the API. Request is executed immediately @param array|Options $options Optional Arguments @param mixed $pageSize Number of records to return, defaults to 50 @param string $pageToken PageToken provided by the API @param mixed $pageNumber Page Number, this value is simply for client state @return \Twilio\Page Page of MobileInstance
[ "Retrieve", "a", "single", "page", "of", "MobileInstance", "records", "from", "the", "API", ".", "Request", "is", "executed", "immediately" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileList.php#L93-L126
train
twilio/twilio-php
Twilio/Rest/Lookups/V1/PhoneNumberContext.php
PhoneNumberContext.fetch
public function fetch($options = array()) { $options = new Values($options); $params = Values::of(array( 'CountryCode' => $options['countryCode'], 'Type' => Serialize::map($options['type'], function($e) { return $e; }), 'AddOns' => Serialize::map($options['addOns'], function($e) { return $e; }), )); $params = array_merge($params, Serialize::prefixedCollapsibleMap($options['addOnsData'], 'AddOns')); $payload = $this->version->fetch( 'GET', $this->uri, $params ); return new PhoneNumberInstance($this->version, $payload, $this->solution['phoneNumber']); }
php
public function fetch($options = array()) { $options = new Values($options); $params = Values::of(array( 'CountryCode' => $options['countryCode'], 'Type' => Serialize::map($options['type'], function($e) { return $e; }), 'AddOns' => Serialize::map($options['addOns'], function($e) { return $e; }), )); $params = array_merge($params, Serialize::prefixedCollapsibleMap($options['addOnsData'], 'AddOns')); $payload = $this->version->fetch( 'GET', $this->uri, $params ); return new PhoneNumberInstance($this->version, $payload, $this->solution['phoneNumber']); }
[ "public", "function", "fetch", "(", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "params", "=", "Values", "::", "of", "(", "array", "(", "'CountryCode'", "=>", "$", "options", "[", "'countryCode'", "]", ",", "'Type'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'type'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'AddOns'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'addOns'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", ")", ")", ";", "$", "params", "=", "array_merge", "(", "$", "params", ",", "Serialize", "::", "prefixedCollapsibleMap", "(", "$", "options", "[", "'addOnsData'", "]", ",", "'AddOns'", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "fetch", "(", "'GET'", ",", "$", "this", "->", "uri", ",", "$", "params", ")", ";", "return", "new", "PhoneNumberInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'phoneNumber'", "]", ")", ";", "}" ]
Fetch a PhoneNumberInstance @param array|Options $options Optional Arguments @return PhoneNumberInstance Fetched PhoneNumberInstance @throws TwilioException When an HTTP error occurs.
[ "Fetch", "a", "PhoneNumberInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Lookups/V1/PhoneNumberContext.php#L42-L59
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingList.php
IpAccessControlListMappingList.getContext
public function getContext($sid) { return new IpAccessControlListMappingContext( $this->version, $this->solution['accountSid'], $this->solution['domainSid'], $sid ); }
php
public function getContext($sid) { return new IpAccessControlListMappingContext( $this->version, $this->solution['accountSid'], $this->solution['domainSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "IpAccessControlListMappingContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'domainSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a IpAccessControlListMappingContext @param string $sid A 34 character string that uniquely identifies the resource to fetch. @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\IpAccessControlListMappingContext
[ "Constructs", "a", "IpAccessControlListMappingContext" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingList.php#L158-L165
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
RecordList.getAllTime
protected function getAllTime() { if (!$this->_allTime) { $this->_allTime = new AllTimeList($this->version, $this->solution['accountSid']); } return $this->_allTime; }
php
protected function getAllTime() { if (!$this->_allTime) { $this->_allTime = new AllTimeList($this->version, $this->solution['accountSid']); } return $this->_allTime; }
[ "protected", "function", "getAllTime", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_allTime", ")", "{", "$", "this", "->", "_allTime", "=", "new", "AllTimeList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_allTime", ";", "}" ]
Access the allTime
[ "Access", "the", "allTime" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php#L161-L167
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
RecordList.getDaily
protected function getDaily() { if (!$this->_daily) { $this->_daily = new DailyList($this->version, $this->solution['accountSid']); } return $this->_daily; }
php
protected function getDaily() { if (!$this->_daily) { $this->_daily = new DailyList($this->version, $this->solution['accountSid']); } return $this->_daily; }
[ "protected", "function", "getDaily", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_daily", ")", "{", "$", "this", "->", "_daily", "=", "new", "DailyList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_daily", ";", "}" ]
Access the daily
[ "Access", "the", "daily" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php#L172-L178
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
RecordList.getLastMonth
protected function getLastMonth() { if (!$this->_lastMonth) { $this->_lastMonth = new LastMonthList($this->version, $this->solution['accountSid']); } return $this->_lastMonth; }
php
protected function getLastMonth() { if (!$this->_lastMonth) { $this->_lastMonth = new LastMonthList($this->version, $this->solution['accountSid']); } return $this->_lastMonth; }
[ "protected", "function", "getLastMonth", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_lastMonth", ")", "{", "$", "this", "->", "_lastMonth", "=", "new", "LastMonthList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_lastMonth", ";", "}" ]
Access the lastMonth
[ "Access", "the", "lastMonth" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php#L183-L189
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
RecordList.getMonthly
protected function getMonthly() { if (!$this->_monthly) { $this->_monthly = new MonthlyList($this->version, $this->solution['accountSid']); } return $this->_monthly; }
php
protected function getMonthly() { if (!$this->_monthly) { $this->_monthly = new MonthlyList($this->version, $this->solution['accountSid']); } return $this->_monthly; }
[ "protected", "function", "getMonthly", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_monthly", ")", "{", "$", "this", "->", "_monthly", "=", "new", "MonthlyList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_monthly", ";", "}" ]
Access the monthly
[ "Access", "the", "monthly" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php#L194-L200
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
RecordList.getThisMonth
protected function getThisMonth() { if (!$this->_thisMonth) { $this->_thisMonth = new ThisMonthList($this->version, $this->solution['accountSid']); } return $this->_thisMonth; }
php
protected function getThisMonth() { if (!$this->_thisMonth) { $this->_thisMonth = new ThisMonthList($this->version, $this->solution['accountSid']); } return $this->_thisMonth; }
[ "protected", "function", "getThisMonth", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_thisMonth", ")", "{", "$", "this", "->", "_thisMonth", "=", "new", "ThisMonthList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_thisMonth", ";", "}" ]
Access the thisMonth
[ "Access", "the", "thisMonth" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php#L205-L211
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
RecordList.getToday
protected function getToday() { if (!$this->_today) { $this->_today = new TodayList($this->version, $this->solution['accountSid']); } return $this->_today; }
php
protected function getToday() { if (!$this->_today) { $this->_today = new TodayList($this->version, $this->solution['accountSid']); } return $this->_today; }
[ "protected", "function", "getToday", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_today", ")", "{", "$", "this", "->", "_today", "=", "new", "TodayList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_today", ";", "}" ]
Access the today
[ "Access", "the", "today" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php#L216-L222
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
RecordList.getYearly
protected function getYearly() { if (!$this->_yearly) { $this->_yearly = new YearlyList($this->version, $this->solution['accountSid']); } return $this->_yearly; }
php
protected function getYearly() { if (!$this->_yearly) { $this->_yearly = new YearlyList($this->version, $this->solution['accountSid']); } return $this->_yearly; }
[ "protected", "function", "getYearly", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_yearly", ")", "{", "$", "this", "->", "_yearly", "=", "new", "YearlyList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_yearly", ";", "}" ]
Access the yearly
[ "Access", "the", "yearly" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php#L227-L233
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
RecordList.getYesterday
protected function getYesterday() { if (!$this->_yesterday) { $this->_yesterday = new YesterdayList($this->version, $this->solution['accountSid']); } return $this->_yesterday; }
php
protected function getYesterday() { if (!$this->_yesterday) { $this->_yesterday = new YesterdayList($this->version, $this->solution['accountSid']); } return $this->_yesterday; }
[ "protected", "function", "getYesterday", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_yesterday", ")", "{", "$", "this", "->", "_yesterday", "=", "new", "YesterdayList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_yesterday", ";", "}" ]
Access the yesterday
[ "Access", "the", "yesterday" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php#L238-L244
train
twilio/twilio-php
Twilio/Rest/Preview/BulkExports/ExportContext.php
ExportContext.getDays
protected function getDays() { if (!$this->_days) { $this->_days = new DayList($this->version, $this->solution['resourceType']); } return $this->_days; }
php
protected function getDays() { if (!$this->_days) { $this->_days = new DayList($this->version, $this->solution['resourceType']); } return $this->_days; }
[ "protected", "function", "getDays", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_days", ")", "{", "$", "this", "->", "_days", "=", "new", "DayList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'resourceType'", "]", ")", ";", "}", "return", "$", "this", "->", "_days", ";", "}" ]
Access the days @return \Twilio\Rest\Preview\BulkExports\Export\DayList
[ "Access", "the", "days" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/BulkExports/ExportContext.php#L65-L71
train
twilio/twilio-php
Twilio/Rest/Chat/V2/Service/Channel/WebhookList.php
WebhookList.create
public function create($type, $options = array()) { $options = new Values($options); $data = Values::of(array( 'Type' => $type, 'Configuration.Url' => $options['configurationUrl'], 'Configuration.Method' => $options['configurationMethod'], 'Configuration.Filters' => Serialize::map($options['configurationFilters'], function($e) { return $e; }), 'Configuration.Triggers' => Serialize::map($options['configurationTriggers'], function($e) { return $e; }), 'Configuration.FlowSid' => $options['configurationFlowSid'], 'Configuration.RetryCount' => $options['configurationRetryCount'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new WebhookInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['channelSid'] ); }
php
public function create($type, $options = array()) { $options = new Values($options); $data = Values::of(array( 'Type' => $type, 'Configuration.Url' => $options['configurationUrl'], 'Configuration.Method' => $options['configurationMethod'], 'Configuration.Filters' => Serialize::map($options['configurationFilters'], function($e) { return $e; }), 'Configuration.Triggers' => Serialize::map($options['configurationTriggers'], function($e) { return $e; }), 'Configuration.FlowSid' => $options['configurationFlowSid'], 'Configuration.RetryCount' => $options['configurationRetryCount'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new WebhookInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['channelSid'] ); }
[ "public", "function", "create", "(", "$", "type", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Type'", "=>", "$", "type", ",", "'Configuration.Url'", "=>", "$", "options", "[", "'configurationUrl'", "]", ",", "'Configuration.Method'", "=>", "$", "options", "[", "'configurationMethod'", "]", ",", "'Configuration.Filters'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'configurationFilters'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'Configuration.Triggers'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'configurationTriggers'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'Configuration.FlowSid'", "=>", "$", "options", "[", "'configurationFlowSid'", "]", ",", "'Configuration.RetryCount'", "=>", "$", "options", "[", "'configurationRetryCount'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "WebhookInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'channelSid'", "]", ")", ";", "}" ]
Create a new WebhookInstance @param string $type The type of webhook @param array|Options $options Optional Arguments @return WebhookInstance Newly created WebhookInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "WebhookInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Chat/V2/Service/Channel/WebhookList.php#L132-L158
train
twilio/twilio-php
Twilio/Rest/Chat/V2/Service/Channel/WebhookList.php
WebhookList.getContext
public function getContext($sid) { return new WebhookContext( $this->version, $this->solution['serviceSid'], $this->solution['channelSid'], $sid ); }
php
public function getContext($sid) { return new WebhookContext( $this->version, $this->solution['serviceSid'], $this->solution['channelSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "WebhookContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'channelSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a WebhookContext @param string $sid The unique string that identifies the resource @return \Twilio\Rest\Chat\V2\Service\Channel\WebhookContext
[ "Constructs", "a", "WebhookContext" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Chat/V2/Service/Channel/WebhookList.php#L166-L173
train
twilio/twilio-php
Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionList.php
SyncListPermissionList.getContext
public function getContext($identity) { return new SyncListPermissionContext( $this->version, $this->solution['serviceSid'], $this->solution['listSid'], $identity ); }
php
public function getContext($identity) { return new SyncListPermissionContext( $this->version, $this->solution['serviceSid'], $this->solution['listSid'], $identity ); }
[ "public", "function", "getContext", "(", "$", "identity", ")", "{", "return", "new", "SyncListPermissionContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'listSid'", "]", ",", "$", "identity", ")", ";", "}" ]
Constructs a SyncListPermissionContext @param string $identity Identity of the user to whom the Sync List Permission applies. @return \Twilio\Rest\Preview\Sync\Service\SyncList\SyncListPermissionContext
[ "Constructs", "a", "SyncListPermissionContext" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionList.php#L131-L138
train
twilio/twilio-php
Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentList.php
AuthorizationDocumentList.create
public function create($hostedNumberOrderSids, $addressSid, $email, $contactTitle, $contactPhoneNumber, $options = array()) { $options = new Values($options); $data = Values::of(array( 'HostedNumberOrderSids' => Serialize::map($hostedNumberOrderSids, function($e) { return $e; }), 'AddressSid' => $addressSid, 'Email' => $email, 'ContactTitle' => $contactTitle, 'ContactPhoneNumber' => $contactPhoneNumber, 'CcEmails' => Serialize::map($options['ccEmails'], function($e) { return $e; }), )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new AuthorizationDocumentInstance($this->version, $payload); }
php
public function create($hostedNumberOrderSids, $addressSid, $email, $contactTitle, $contactPhoneNumber, $options = array()) { $options = new Values($options); $data = Values::of(array( 'HostedNumberOrderSids' => Serialize::map($hostedNumberOrderSids, function($e) { return $e; }), 'AddressSid' => $addressSid, 'Email' => $email, 'ContactTitle' => $contactTitle, 'ContactPhoneNumber' => $contactPhoneNumber, 'CcEmails' => Serialize::map($options['ccEmails'], function($e) { return $e; }), )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new AuthorizationDocumentInstance($this->version, $payload); }
[ "public", "function", "create", "(", "$", "hostedNumberOrderSids", ",", "$", "addressSid", ",", "$", "email", ",", "$", "contactTitle", ",", "$", "contactPhoneNumber", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'HostedNumberOrderSids'", "=>", "Serialize", "::", "map", "(", "$", "hostedNumberOrderSids", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'AddressSid'", "=>", "$", "addressSid", ",", "'Email'", "=>", "$", "email", ",", "'ContactTitle'", "=>", "$", "contactTitle", ",", "'ContactPhoneNumber'", "=>", "$", "contactPhoneNumber", ",", "'CcEmails'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'ccEmails'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "AuthorizationDocumentInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ")", ";", "}" ]
Create a new AuthorizationDocumentInstance @param string $hostedNumberOrderSids A list of HostedNumberOrder sids. @param string $addressSid Address sid. @param string $email Email. @param string $contactTitle Title of signee of this Authorization Document. @param string $contactPhoneNumber Authorization Document's signee's phone number. @param array|Options $options Optional Arguments @return AuthorizationDocumentInstance Newly created AuthorizationDocumentInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "AuthorizationDocumentInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentList.php#L145-L165
train
twilio/twilio-php
Twilio/Rest/Preview/AccSecurity/Service/VerificationList.php
VerificationList.create
public function create($to, $channel, $options = array()) { $options = new Values($options); $data = Values::of(array( 'To' => $to, 'Channel' => $channel, 'CustomMessage' => $options['customMessage'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new VerificationInstance($this->version, $payload, $this->solution['serviceSid']); }
php
public function create($to, $channel, $options = array()) { $options = new Values($options); $data = Values::of(array( 'To' => $to, 'Channel' => $channel, 'CustomMessage' => $options['customMessage'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new VerificationInstance($this->version, $payload, $this->solution['serviceSid']); }
[ "public", "function", "create", "(", "$", "to", ",", "$", "channel", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'To'", "=>", "$", "to", ",", "'Channel'", "=>", "$", "channel", ",", "'CustomMessage'", "=>", "$", "options", "[", "'customMessage'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "VerificationInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ")", ";", "}" ]
Create a new VerificationInstance @param string $to To phonenumber @param string $channel sms or call @param array|Options $options Optional Arguments @return VerificationInstance Newly created VerificationInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "VerificationInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/AccSecurity/Service/VerificationList.php#L46-L63
train
twilio/twilio-php
Twilio/Rest/FlexApi/V1/FlexFlowList.php
FlexFlowList.create
public function create($friendlyName, $chatServiceSid, $channelType, $options = array()) { $options = new Values($options); $data = Values::of(array( 'FriendlyName' => $friendlyName, 'ChatServiceSid' => $chatServiceSid, 'ChannelType' => $channelType, 'ContactIdentity' => $options['contactIdentity'], 'Enabled' => Serialize::booleanToString($options['enabled']), 'IntegrationType' => $options['integrationType'], 'Integration.FlowSid' => $options['integrationFlowSid'], 'Integration.Url' => $options['integrationUrl'], 'Integration.WorkspaceSid' => $options['integrationWorkspaceSid'], 'Integration.WorkflowSid' => $options['integrationWorkflowSid'], 'Integration.Channel' => $options['integrationChannel'], 'Integration.Timeout' => $options['integrationTimeout'], 'Integration.Priority' => $options['integrationPriority'], 'Integration.CreationOnMessage' => Serialize::booleanToString($options['integrationCreationOnMessage']), 'LongLived' => Serialize::booleanToString($options['longLived']), )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new FlexFlowInstance($this->version, $payload); }
php
public function create($friendlyName, $chatServiceSid, $channelType, $options = array()) { $options = new Values($options); $data = Values::of(array( 'FriendlyName' => $friendlyName, 'ChatServiceSid' => $chatServiceSid, 'ChannelType' => $channelType, 'ContactIdentity' => $options['contactIdentity'], 'Enabled' => Serialize::booleanToString($options['enabled']), 'IntegrationType' => $options['integrationType'], 'Integration.FlowSid' => $options['integrationFlowSid'], 'Integration.Url' => $options['integrationUrl'], 'Integration.WorkspaceSid' => $options['integrationWorkspaceSid'], 'Integration.WorkflowSid' => $options['integrationWorkflowSid'], 'Integration.Channel' => $options['integrationChannel'], 'Integration.Timeout' => $options['integrationTimeout'], 'Integration.Priority' => $options['integrationPriority'], 'Integration.CreationOnMessage' => Serialize::booleanToString($options['integrationCreationOnMessage']), 'LongLived' => Serialize::booleanToString($options['longLived']), )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new FlexFlowInstance($this->version, $payload); }
[ "public", "function", "create", "(", "$", "friendlyName", ",", "$", "chatServiceSid", ",", "$", "channelType", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'FriendlyName'", "=>", "$", "friendlyName", ",", "'ChatServiceSid'", "=>", "$", "chatServiceSid", ",", "'ChannelType'", "=>", "$", "channelType", ",", "'ContactIdentity'", "=>", "$", "options", "[", "'contactIdentity'", "]", ",", "'Enabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'enabled'", "]", ")", ",", "'IntegrationType'", "=>", "$", "options", "[", "'integrationType'", "]", ",", "'Integration.FlowSid'", "=>", "$", "options", "[", "'integrationFlowSid'", "]", ",", "'Integration.Url'", "=>", "$", "options", "[", "'integrationUrl'", "]", ",", "'Integration.WorkspaceSid'", "=>", "$", "options", "[", "'integrationWorkspaceSid'", "]", ",", "'Integration.WorkflowSid'", "=>", "$", "options", "[", "'integrationWorkflowSid'", "]", ",", "'Integration.Channel'", "=>", "$", "options", "[", "'integrationChannel'", "]", ",", "'Integration.Timeout'", "=>", "$", "options", "[", "'integrationTimeout'", "]", ",", "'Integration.Priority'", "=>", "$", "options", "[", "'integrationPriority'", "]", ",", "'Integration.CreationOnMessage'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'integrationCreationOnMessage'", "]", ")", ",", "'LongLived'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'longLived'", "]", ")", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "FlexFlowInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ")", ";", "}" ]
Create a new FlexFlowInstance @param string $friendlyName Human readable description of this FlexFlow @param string $chatServiceSid Service Sid. @param string $channelType Channel type @param array|Options $options Optional Arguments @return FlexFlowInstance Newly created FlexFlowInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "FlexFlowInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/FlexApi/V1/FlexFlowList.php#L135-L164
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnList.php
AssignedAddOnList.create
public function create($installedAddOnSid) { $data = Values::of(array('InstalledAddOnSid' => $installedAddOnSid, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new AssignedAddOnInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['resourceSid'] ); }
php
public function create($installedAddOnSid) { $data = Values::of(array('InstalledAddOnSid' => $installedAddOnSid, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new AssignedAddOnInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['resourceSid'] ); }
[ "public", "function", "create", "(", "$", "installedAddOnSid", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'InstalledAddOnSid'", "=>", "$", "installedAddOnSid", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "AssignedAddOnInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'resourceSid'", "]", ")", ";", "}" ]
Create a new AssignedAddOnInstance @param string $installedAddOnSid The SID that identifies the Add-on installation @return AssignedAddOnInstance Newly created AssignedAddOnInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "AssignedAddOnInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnList.php#L132-L148
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnList.php
AssignedAddOnList.getContext
public function getContext($sid) { return new AssignedAddOnContext( $this->version, $this->solution['accountSid'], $this->solution['resourceSid'], $sid ); }
php
public function getContext($sid) { return new AssignedAddOnContext( $this->version, $this->solution['accountSid'], $this->solution['resourceSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "AssignedAddOnContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'resourceSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a AssignedAddOnContext @param string $sid The unique string that identifies the resource @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumber\AssignedAddOnContext
[ "Constructs", "a", "AssignedAddOnContext" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnList.php#L156-L163
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/SipList.php
SipList.getDomains
protected function getDomains() { if (!$this->_domains) { $this->_domains = new DomainList($this->version, $this->solution['accountSid']); } return $this->_domains; }
php
protected function getDomains() { if (!$this->_domains) { $this->_domains = new DomainList($this->version, $this->solution['accountSid']); } return $this->_domains; }
[ "protected", "function", "getDomains", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_domains", ")", "{", "$", "this", "->", "_domains", "=", "new", "DomainList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_domains", ";", "}" ]
Access the domains
[ "Access", "the", "domains" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/SipList.php#L50-L56
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/SipList.php
SipList.getIpAccessControlLists
protected function getIpAccessControlLists() { if (!$this->_ipAccessControlLists) { $this->_ipAccessControlLists = new IpAccessControlListList( $this->version, $this->solution['accountSid'] ); } return $this->_ipAccessControlLists; }
php
protected function getIpAccessControlLists() { if (!$this->_ipAccessControlLists) { $this->_ipAccessControlLists = new IpAccessControlListList( $this->version, $this->solution['accountSid'] ); } return $this->_ipAccessControlLists; }
[ "protected", "function", "getIpAccessControlLists", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_ipAccessControlLists", ")", "{", "$", "this", "->", "_ipAccessControlLists", "=", "new", "IpAccessControlListList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_ipAccessControlLists", ";", "}" ]
Access the ipAccessControlLists
[ "Access", "the", "ipAccessControlLists" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/SipList.php#L61-L70
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/SipList.php
SipList.getCredentialLists
protected function getCredentialLists() { if (!$this->_credentialLists) { $this->_credentialLists = new CredentialListList($this->version, $this->solution['accountSid']); } return $this->_credentialLists; }
php
protected function getCredentialLists() { if (!$this->_credentialLists) { $this->_credentialLists = new CredentialListList($this->version, $this->solution['accountSid']); } return $this->_credentialLists; }
[ "protected", "function", "getCredentialLists", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_credentialLists", ")", "{", "$", "this", "->", "_credentialLists", "=", "new", "CredentialListList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_credentialLists", ";", "}" ]
Access the credentialLists
[ "Access", "the", "credentialLists" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/SipList.php#L75-L81
train
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
WorkspaceContext.getActivities
protected function getActivities() { if (!$this->_activities) { $this->_activities = new ActivityList($this->version, $this->solution['sid']); } return $this->_activities; }
php
protected function getActivities() { if (!$this->_activities) { $this->_activities = new ActivityList($this->version, $this->solution['sid']); } return $this->_activities; }
[ "protected", "function", "getActivities", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_activities", ")", "{", "$", "this", "->", "_activities", "=", "new", "ActivityList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_activities", ";", "}" ]
Access the activities @return \Twilio\Rest\Taskrouter\V1\Workspace\ActivityList
[ "Access", "the", "activities" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php#L142-L148
train
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
WorkspaceContext.getEvents
protected function getEvents() { if (!$this->_events) { $this->_events = new EventList($this->version, $this->solution['sid']); } return $this->_events; }
php
protected function getEvents() { if (!$this->_events) { $this->_events = new EventList($this->version, $this->solution['sid']); } return $this->_events; }
[ "protected", "function", "getEvents", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_events", ")", "{", "$", "this", "->", "_events", "=", "new", "EventList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_events", ";", "}" ]
Access the events @return \Twilio\Rest\Taskrouter\V1\Workspace\EventList
[ "Access", "the", "events" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php#L155-L161
train
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
WorkspaceContext.getTasks
protected function getTasks() { if (!$this->_tasks) { $this->_tasks = new TaskList($this->version, $this->solution['sid']); } return $this->_tasks; }
php
protected function getTasks() { if (!$this->_tasks) { $this->_tasks = new TaskList($this->version, $this->solution['sid']); } return $this->_tasks; }
[ "protected", "function", "getTasks", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_tasks", ")", "{", "$", "this", "->", "_tasks", "=", "new", "TaskList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_tasks", ";", "}" ]
Access the tasks @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskList
[ "Access", "the", "tasks" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php#L168-L174
train
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
WorkspaceContext.getTaskQueues
protected function getTaskQueues() { if (!$this->_taskQueues) { $this->_taskQueues = new TaskQueueList($this->version, $this->solution['sid']); } return $this->_taskQueues; }
php
protected function getTaskQueues() { if (!$this->_taskQueues) { $this->_taskQueues = new TaskQueueList($this->version, $this->solution['sid']); } return $this->_taskQueues; }
[ "protected", "function", "getTaskQueues", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_taskQueues", ")", "{", "$", "this", "->", "_taskQueues", "=", "new", "TaskQueueList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_taskQueues", ";", "}" ]
Access the taskQueues @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueueList
[ "Access", "the", "taskQueues" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php#L181-L187
train
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
WorkspaceContext.getWorkers
protected function getWorkers() { if (!$this->_workers) { $this->_workers = new WorkerList($this->version, $this->solution['sid']); } return $this->_workers; }
php
protected function getWorkers() { if (!$this->_workers) { $this->_workers = new WorkerList($this->version, $this->solution['sid']); } return $this->_workers; }
[ "protected", "function", "getWorkers", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_workers", ")", "{", "$", "this", "->", "_workers", "=", "new", "WorkerList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_workers", ";", "}" ]
Access the workers @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkerList
[ "Access", "the", "workers" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php#L194-L200
train
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
WorkspaceContext.getWorkflows
protected function getWorkflows() { if (!$this->_workflows) { $this->_workflows = new WorkflowList($this->version, $this->solution['sid']); } return $this->_workflows; }
php
protected function getWorkflows() { if (!$this->_workflows) { $this->_workflows = new WorkflowList($this->version, $this->solution['sid']); } return $this->_workflows; }
[ "protected", "function", "getWorkflows", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_workflows", ")", "{", "$", "this", "->", "_workflows", "=", "new", "WorkflowList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_workflows", ";", "}" ]
Access the workflows @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkflowList
[ "Access", "the", "workflows" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php#L207-L213
train
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
WorkspaceContext.getTaskChannels
protected function getTaskChannels() { if (!$this->_taskChannels) { $this->_taskChannels = new TaskChannelList($this->version, $this->solution['sid']); } return $this->_taskChannels; }
php
protected function getTaskChannels() { if (!$this->_taskChannels) { $this->_taskChannels = new TaskChannelList($this->version, $this->solution['sid']); } return $this->_taskChannels; }
[ "protected", "function", "getTaskChannels", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_taskChannels", ")", "{", "$", "this", "->", "_taskChannels", "=", "new", "TaskChannelList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_taskChannels", ";", "}" ]
Access the taskChannels @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskChannelList
[ "Access", "the", "taskChannels" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php#L265-L271
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/UsageList.php
UsageList.getRecords
protected function getRecords() { if (!$this->_records) { $this->_records = new RecordList($this->version, $this->solution['accountSid']); } return $this->_records; }
php
protected function getRecords() { if (!$this->_records) { $this->_records = new RecordList($this->version, $this->solution['accountSid']); } return $this->_records; }
[ "protected", "function", "getRecords", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_records", ")", "{", "$", "this", "->", "_records", "=", "new", "RecordList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_records", ";", "}" ]
Access the records
[ "Access", "the", "records" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/UsageList.php#L45-L51
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/UsageList.php
UsageList.getTriggers
protected function getTriggers() { if (!$this->_triggers) { $this->_triggers = new TriggerList($this->version, $this->solution['accountSid']); } return $this->_triggers; }
php
protected function getTriggers() { if (!$this->_triggers) { $this->_triggers = new TriggerList($this->version, $this->solution['accountSid']); } return $this->_triggers; }
[ "protected", "function", "getTriggers", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_triggers", ")", "{", "$", "this", "->", "_triggers", "=", "new", "TriggerList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_triggers", ";", "}" ]
Access the triggers
[ "Access", "the", "triggers" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/UsageList.php#L56-L62
train
twilio/twilio-php
Twilio/Rest/Chat/V1/Service/RoleContext.php
RoleContext.update
public function update($permission) { $data = Values::of(array('Permission' => Serialize::map($permission, function($e) { return $e; }), )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new RoleInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['sid'] ); }
php
public function update($permission) { $data = Values::of(array('Permission' => Serialize::map($permission, function($e) { return $e; }), )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new RoleInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['sid'] ); }
[ "public", "function", "update", "(", "$", "permission", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Permission'", "=>", "Serialize", "::", "map", "(", "$", "permission", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "update", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "RoleInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}" ]
Update the RoleInstance @param string $permission A permission this role should have. @return RoleInstance Updated RoleInstance @throws TwilioException When an HTTP error occurs.
[ "Update", "the", "RoleInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Chat/V1/Service/RoleContext.php#L75-L91
train
twilio/twilio-php
Twilio/Rest/Video/V1/RoomContext.php
RoomContext.update
public function update($status) { $data = Values::of(array('Status' => $status, )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new RoomInstance($this->version, $payload, $this->solution['sid']); }
php
public function update($status) { $data = Values::of(array('Status' => $status, )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new RoomInstance($this->version, $payload, $this->solution['sid']); }
[ "public", "function", "update", "(", "$", "status", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Status'", "=>", "$", "status", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "update", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "RoomInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}" ]
Update the RoomInstance @param string $status Set to completed to end the Room. @return RoomInstance Updated RoomInstance @throws TwilioException When an HTTP error occurs.
[ "Update", "the", "RoomInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Video/V1/RoomContext.php#L71-L82
train
twilio/twilio-php
Twilio/Rest/Authy/V1/Service/Entity/FactorList.php
FactorList.create
public function create($binding, $friendlyName, $factorType) { $data = Values::of(array( 'Binding' => $binding, 'FriendlyName' => $friendlyName, 'FactorType' => $factorType, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new FactorInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['identity'] ); }
php
public function create($binding, $friendlyName, $factorType) { $data = Values::of(array( 'Binding' => $binding, 'FriendlyName' => $friendlyName, 'FactorType' => $factorType, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new FactorInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['identity'] ); }
[ "public", "function", "create", "(", "$", "binding", ",", "$", "friendlyName", ",", "$", "factorType", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Binding'", "=>", "$", "binding", ",", "'FriendlyName'", "=>", "$", "friendlyName", ",", "'FactorType'", "=>", "$", "factorType", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "FactorInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'identity'", "]", ")", ";", "}" ]
Create a new FactorInstance @param string $binding A unique binding for this Factor @param string $friendlyName The friendly name of this Factor @param string $factorType The Type of this Factor @return FactorInstance Newly created FactorInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "FactorInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Authy/V1/Service/Entity/FactorList.php#L46-L66
train
twilio/twilio-php
Twilio/Rest/Authy/V1/Service/Entity/FactorList.php
FactorList.getContext
public function getContext($sid) { return new FactorContext( $this->version, $this->solution['serviceSid'], $this->solution['identity'], $sid ); }
php
public function getContext($sid) { return new FactorContext( $this->version, $this->solution['serviceSid'], $this->solution['identity'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "FactorContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'identity'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a FactorContext @param string $sid A string that uniquely identifies this Factor. @return \Twilio\Rest\Authy\V1\Service\Entity\FactorContext
[ "Constructs", "a", "FactorContext" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Authy/V1/Service/Entity/FactorList.php#L160-L167
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingList.php
AuthCallsIpAccessControlListMappingList.create
public function create($ipAccessControlListSid) { $data = Values::of(array('IpAccessControlListSid' => $ipAccessControlListSid, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new AuthCallsIpAccessControlListMappingInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['domainSid'] ); }
php
public function create($ipAccessControlListSid) { $data = Values::of(array('IpAccessControlListSid' => $ipAccessControlListSid, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new AuthCallsIpAccessControlListMappingInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['domainSid'] ); }
[ "public", "function", "create", "(", "$", "ipAccessControlListSid", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'IpAccessControlListSid'", "=>", "$", "ipAccessControlListSid", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "AuthCallsIpAccessControlListMappingInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'domainSid'", "]", ")", ";", "}" ]
Create a new AuthCallsIpAccessControlListMappingInstance @param string $ipAccessControlListSid The SID of the IpAccessControlList resource to map to the SIP domain @return AuthCallsIpAccessControlListMappingInstance Newly created AuthCallsIpAccessControlListMappingInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "AuthCallsIpAccessControlListMappingInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingList.php#L43-L59
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingList.php
AuthCallsIpAccessControlListMappingList.getContext
public function getContext($sid) { return new AuthCallsIpAccessControlListMappingContext( $this->version, $this->solution['accountSid'], $this->solution['domainSid'], $sid ); }
php
public function getContext($sid) { return new AuthCallsIpAccessControlListMappingContext( $this->version, $this->solution['accountSid'], $this->solution['domainSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "AuthCallsIpAccessControlListMappingContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'domainSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a AuthCallsIpAccessControlListMappingContext @param string $sid The unique string that identifies the resource @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\AuthTypes\AuthTypeCalls\AuthCallsIpAccessControlListMappingContext
[ "Constructs", "a", "AuthCallsIpAccessControlListMappingContext" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingList.php#L157-L164
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Recording/TranscriptionList.php
TranscriptionList.getContext
public function getContext($sid) { return new TranscriptionContext( $this->version, $this->solution['accountSid'], $this->solution['recordingSid'], $sid ); }
php
public function getContext($sid) { return new TranscriptionContext( $this->version, $this->solution['accountSid'], $this->solution['recordingSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "TranscriptionContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'recordingSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a TranscriptionContext @param string $sid The unique string that identifies the resource @return \Twilio\Rest\Api\V2010\Account\Recording\TranscriptionContext
[ "Constructs", "a", "TranscriptionContext" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionList.php#L127-L134
train
twilio/twilio-php
Twilio/Rest/Wireless/V1/SimContext.php
SimContext.getUsageRecords
protected function getUsageRecords() { if (!$this->_usageRecords) { $this->_usageRecords = new UsageRecordList($this->version, $this->solution['sid']); } return $this->_usageRecords; }
php
protected function getUsageRecords() { if (!$this->_usageRecords) { $this->_usageRecords = new UsageRecordList($this->version, $this->solution['sid']); } return $this->_usageRecords; }
[ "protected", "function", "getUsageRecords", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_usageRecords", ")", "{", "$", "this", "->", "_usageRecords", "=", "new", "UsageRecordList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_usageRecords", ";", "}" ]
Access the usageRecords @return \Twilio\Rest\Wireless\V1\Sim\UsageRecordList
[ "Access", "the", "usageRecords" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Wireless/V1/SimContext.php#L118-L124
train
twilio/twilio-php
Twilio/Rest/Wireless/V1/SimContext.php
SimContext.getDataSessions
protected function getDataSessions() { if (!$this->_dataSessions) { $this->_dataSessions = new DataSessionList($this->version, $this->solution['sid']); } return $this->_dataSessions; }
php
protected function getDataSessions() { if (!$this->_dataSessions) { $this->_dataSessions = new DataSessionList($this->version, $this->solution['sid']); } return $this->_dataSessions; }
[ "protected", "function", "getDataSessions", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_dataSessions", ")", "{", "$", "this", "->", "_dataSessions", "=", "new", "DataSessionList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_dataSessions", ";", "}" ]
Access the dataSessions @return \Twilio\Rest\Wireless\V1\Sim\DataSessionList
[ "Access", "the", "dataSessions" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Wireless/V1/SimContext.php#L131-L137
train
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/WorkflowList.php
WorkflowList.create
public function create($friendlyName, $configuration, $options = array()) { $options = new Values($options); $data = Values::of(array( 'FriendlyName' => $friendlyName, 'Configuration' => $configuration, 'AssignmentCallbackUrl' => $options['assignmentCallbackUrl'], 'FallbackAssignmentCallbackUrl' => $options['fallbackAssignmentCallbackUrl'], 'TaskReservationTimeout' => $options['taskReservationTimeout'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new WorkflowInstance($this->version, $payload, $this->solution['workspaceSid']); }
php
public function create($friendlyName, $configuration, $options = array()) { $options = new Values($options); $data = Values::of(array( 'FriendlyName' => $friendlyName, 'Configuration' => $configuration, 'AssignmentCallbackUrl' => $options['assignmentCallbackUrl'], 'FallbackAssignmentCallbackUrl' => $options['fallbackAssignmentCallbackUrl'], 'TaskReservationTimeout' => $options['taskReservationTimeout'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new WorkflowInstance($this->version, $payload, $this->solution['workspaceSid']); }
[ "public", "function", "create", "(", "$", "friendlyName", ",", "$", "configuration", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'FriendlyName'", "=>", "$", "friendlyName", ",", "'Configuration'", "=>", "$", "configuration", ",", "'AssignmentCallbackUrl'", "=>", "$", "options", "[", "'assignmentCallbackUrl'", "]", ",", "'FallbackAssignmentCallbackUrl'", "=>", "$", "options", "[", "'fallbackAssignmentCallbackUrl'", "]", ",", "'TaskReservationTimeout'", "=>", "$", "options", "[", "'taskReservationTimeout'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "WorkflowInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ")", ";", "}" ]
Create a new WorkflowInstance @param string $friendlyName A string representing a human readable name for this Workflow. @param string $configuration JSON document configuring the rules for this Workflow. @param array|Options $options Optional Arguments @return WorkflowInstance Newly created WorkflowInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "WorkflowInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowList.php#L137-L156
train
twilio/twilio-php
Twilio/Rest/Messaging/V1/ServiceContext.php
ServiceContext.getAlphaSenders
protected function getAlphaSenders() { if (!$this->_alphaSenders) { $this->_alphaSenders = new AlphaSenderList($this->version, $this->solution['sid']); } return $this->_alphaSenders; }
php
protected function getAlphaSenders() { if (!$this->_alphaSenders) { $this->_alphaSenders = new AlphaSenderList($this->version, $this->solution['sid']); } return $this->_alphaSenders; }
[ "protected", "function", "getAlphaSenders", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_alphaSenders", ")", "{", "$", "this", "->", "_alphaSenders", "=", "new", "AlphaSenderList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_alphaSenders", ";", "}" ]
Access the alphaSenders @return \Twilio\Rest\Messaging\V1\Service\AlphaSenderList
[ "Access", "the", "alphaSenders" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Messaging/V1/ServiceContext.php#L149-L155
train
twilio/twilio-php
Twilio/Rest/Serverless/V1/Service/FunctionList.php
FunctionList.create
public function create($friendlyName) { $data = Values::of(array('FriendlyName' => $friendlyName, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new FunctionInstance($this->version, $payload, $this->solution['serviceSid']); }
php
public function create($friendlyName) { $data = Values::of(array('FriendlyName' => $friendlyName, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new FunctionInstance($this->version, $payload, $this->solution['serviceSid']); }
[ "public", "function", "create", "(", "$", "friendlyName", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'FriendlyName'", "=>", "$", "friendlyName", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "FunctionInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ")", ";", "}" ]
Create a new FunctionInstance @param string $friendlyName A human-readable description of this Function. @return FunctionInstance Newly created FunctionInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "FunctionInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Serverless/V1/Service/FunctionList.php#L129-L140
train
twilio/twilio-php
Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionList.php
MessageInteractionList.getContext
public function getContext($sid) { return new MessageInteractionContext( $this->version, $this->solution['serviceSid'], $this->solution['sessionSid'], $this->solution['participantSid'], $sid ); }
php
public function getContext($sid) { return new MessageInteractionContext( $this->version, $this->solution['serviceSid'], $this->solution['sessionSid'], $this->solution['participantSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "MessageInteractionContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sessionSid'", "]", ",", "$", "this", "->", "solution", "[", "'participantSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a MessageInteractionContext @param string $sid The unique string that identifies the resource @return \Twilio\Rest\Proxy\V1\Service\Session\Participant\MessageInteractionContext
[ "Constructs", "a", "MessageInteractionContext" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionList.php#L168-L176
train
twilio/twilio-php
Twilio/Rest/Chat/V2/Service/User/UserBindingList.php
UserBindingList.getContext
public function getContext($sid) { return new UserBindingContext( $this->version, $this->solution['serviceSid'], $this->solution['userSid'], $sid ); }
php
public function getContext($sid) { return new UserBindingContext( $this->version, $this->solution['serviceSid'], $this->solution['userSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "UserBindingContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'userSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a UserBindingContext @param string $sid The unique string that identifies the resource @return \Twilio\Rest\Chat\V2\Service\User\UserBindingContext
[ "Constructs", "a", "UserBindingContext" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Chat/V2/Service/User/UserBindingList.php#L134-L141
train
twilio/twilio-php
Twilio/Rest/Authy/V1/Service/EntityList.php
EntityList.create
public function create($identity) { $data = Values::of(array('Identity' => $identity, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new EntityInstance($this->version, $payload, $this->solution['serviceSid']); }
php
public function create($identity) { $data = Values::of(array('Identity' => $identity, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new EntityInstance($this->version, $payload, $this->solution['serviceSid']); }
[ "public", "function", "create", "(", "$", "identity", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Identity'", "=>", "$", "identity", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "EntityInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ")", ";", "}" ]
Create a new EntityInstance @param string $identity Unique identity of the Entity @return EntityInstance Newly created EntityInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "EntityInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Authy/V1/Service/EntityList.php#L43-L54
train
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelList.php
TaskChannelList.create
public function create($friendlyName, $uniqueName) { $data = Values::of(array('FriendlyName' => $friendlyName, 'UniqueName' => $uniqueName, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new TaskChannelInstance($this->version, $payload, $this->solution['workspaceSid']); }
php
public function create($friendlyName, $uniqueName) { $data = Values::of(array('FriendlyName' => $friendlyName, 'UniqueName' => $uniqueName, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new TaskChannelInstance($this->version, $payload, $this->solution['workspaceSid']); }
[ "public", "function", "create", "(", "$", "friendlyName", ",", "$", "uniqueName", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'FriendlyName'", "=>", "$", "friendlyName", ",", "'UniqueName'", "=>", "$", "uniqueName", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "TaskChannelInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ")", ";", "}" ]
Create a new TaskChannelInstance @param string $friendlyName String representing user-friendly name for the TaskChannel @param string $uniqueName String representing unique name for the TaskChannel @return TaskChannelInstance Newly created TaskChannelInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "TaskChannelInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelList.php#L129-L140
train
twilio/twilio-php
Twilio/Rest/Autopilot/V1/Assistant/Task/FieldList.php
FieldList.create
public function create($fieldType, $uniqueName) { $data = Values::of(array('FieldType' => $fieldType, 'UniqueName' => $uniqueName, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new FieldInstance( $this->version, $payload, $this->solution['assistantSid'], $this->solution['taskSid'] ); }
php
public function create($fieldType, $uniqueName) { $data = Values::of(array('FieldType' => $fieldType, 'UniqueName' => $uniqueName, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new FieldInstance( $this->version, $payload, $this->solution['assistantSid'], $this->solution['taskSid'] ); }
[ "public", "function", "create", "(", "$", "fieldType", ",", "$", "uniqueName", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'FieldType'", "=>", "$", "fieldType", ",", "'UniqueName'", "=>", "$", "uniqueName", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "FieldInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'assistantSid'", "]", ",", "$", "this", "->", "solution", "[", "'taskSid'", "]", ")", ";", "}" ]
Create a new FieldInstance @param string $fieldType The Field Type of this field @param string $uniqueName An application-defined string that uniquely identifies the new resource @return FieldInstance Newly created FieldInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "FieldInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldList.php#L134-L150
train
twilio/twilio-php
Twilio/Rest/Autopilot/V1/Assistant/Task/FieldList.php
FieldList.getContext
public function getContext($sid) { return new FieldContext( $this->version, $this->solution['assistantSid'], $this->solution['taskSid'], $sid ); }
php
public function getContext($sid) { return new FieldContext( $this->version, $this->solution['assistantSid'], $this->solution['taskSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "FieldContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'assistantSid'", "]", ",", "$", "this", "->", "solution", "[", "'taskSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a FieldContext @param string $sid The unique string that identifies the resource @return \Twilio\Rest\Autopilot\V1\Assistant\Task\FieldContext
[ "Constructs", "a", "FieldContext" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldList.php#L158-L165
train
twilio/twilio-php
Twilio/Rest/Messaging/V1/Service/AlphaSenderList.php
AlphaSenderList.create
public function create($alphaSender) { $data = Values::of(array('AlphaSender' => $alphaSender, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new AlphaSenderInstance($this->version, $payload, $this->solution['serviceSid']); }
php
public function create($alphaSender) { $data = Values::of(array('AlphaSender' => $alphaSender, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new AlphaSenderInstance($this->version, $payload, $this->solution['serviceSid']); }
[ "public", "function", "create", "(", "$", "alphaSender", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'AlphaSender'", "=>", "$", "alphaSender", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "AlphaSenderInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ")", ";", "}" ]
Create a new AlphaSenderInstance @param string $alphaSender An Alphanumeric Sender ID string, up to 11 characters. @return AlphaSenderInstance Newly created AlphaSenderInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "AlphaSenderInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Messaging/V1/Service/AlphaSenderList.php#L45-L56
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/CallContext.php
CallContext.getNotifications
protected function getNotifications() { if (!$this->_notifications) { $this->_notifications = new NotificationList( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->_notifications; }
php
protected function getNotifications() { if (!$this->_notifications) { $this->_notifications = new NotificationList( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->_notifications; }
[ "protected", "function", "getNotifications", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_notifications", ")", "{", "$", "this", "->", "_notifications", "=", "new", "NotificationList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_notifications", ";", "}" ]
Access the notifications @return \Twilio\Rest\Api\V2010\Account\Call\NotificationList
[ "Access", "the", "notifications" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/CallContext.php#L142-L152
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/CallContext.php
CallContext.getFeedback
protected function getFeedback() { if (!$this->_feedback) { $this->_feedback = new FeedbackList( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->_feedback; }
php
protected function getFeedback() { if (!$this->_feedback) { $this->_feedback = new FeedbackList( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->_feedback; }
[ "protected", "function", "getFeedback", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_feedback", ")", "{", "$", "this", "->", "_feedback", "=", "new", "FeedbackList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_feedback", ";", "}" ]
Access the feedback @return \Twilio\Rest\Api\V2010\Account\Call\FeedbackList
[ "Access", "the", "feedback" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/CallContext.php#L159-L169
train
twilio/twilio-php
Twilio/Rest/Voice/V1/DialingPermissionsList.php
DialingPermissionsList.getCountries
protected function getCountries() { if (!$this->_countries) { $this->_countries = new CountryList($this->version); } return $this->_countries; }
php
protected function getCountries() { if (!$this->_countries) { $this->_countries = new CountryList($this->version); } return $this->_countries; }
[ "protected", "function", "getCountries", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_countries", ")", "{", "$", "this", "->", "_countries", "=", "new", "CountryList", "(", "$", "this", "->", "version", ")", ";", "}", "return", "$", "this", "->", "_countries", ";", "}" ]
Access the countries
[ "Access", "the", "countries" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Voice/V1/DialingPermissionsList.php#L49-L55
train
twilio/twilio-php
Twilio/Rest/Voice/V1/DialingPermissionsList.php
DialingPermissionsList.getSettings
protected function getSettings() { if (!$this->_settings) { $this->_settings = new SettingsList($this->version); } return $this->_settings; }
php
protected function getSettings() { if (!$this->_settings) { $this->_settings = new SettingsList($this->version); } return $this->_settings; }
[ "protected", "function", "getSettings", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_settings", ")", "{", "$", "this", "->", "_settings", "=", "new", "SettingsList", "(", "$", "this", "->", "version", ")", ";", "}", "return", "$", "this", "->", "_settings", ";", "}" ]
Access the settings
[ "Access", "the", "settings" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Voice/V1/DialingPermissionsList.php#L60-L66
train
twilio/twilio-php
Twilio/Rest/Voice/V1/DialingPermissionsList.php
DialingPermissionsList.getBulkCountryUpdates
protected function getBulkCountryUpdates() { if (!$this->_bulkCountryUpdates) { $this->_bulkCountryUpdates = new BulkCountryUpdateList($this->version); } return $this->_bulkCountryUpdates; }
php
protected function getBulkCountryUpdates() { if (!$this->_bulkCountryUpdates) { $this->_bulkCountryUpdates = new BulkCountryUpdateList($this->version); } return $this->_bulkCountryUpdates; }
[ "protected", "function", "getBulkCountryUpdates", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_bulkCountryUpdates", ")", "{", "$", "this", "->", "_bulkCountryUpdates", "=", "new", "BulkCountryUpdateList", "(", "$", "this", "->", "version", ")", ";", "}", "return", "$", "this", "->", "_bulkCountryUpdates", ";", "}" ]
Access the bulkCountryUpdates
[ "Access", "the", "bulkCountryUpdates" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Voice/V1/DialingPermissionsList.php#L71-L77
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryList.php
FeedbackSummaryList.create
public function create($startDate, $endDate, $options = array()) { $options = new Values($options); $data = Values::of(array( 'StartDate' => Serialize::iso8601Date($startDate), 'EndDate' => Serialize::iso8601Date($endDate), 'IncludeSubaccounts' => Serialize::booleanToString($options['includeSubaccounts']), 'StatusCallback' => $options['statusCallback'], 'StatusCallbackMethod' => $options['statusCallbackMethod'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new FeedbackSummaryInstance($this->version, $payload, $this->solution['accountSid']); }
php
public function create($startDate, $endDate, $options = array()) { $options = new Values($options); $data = Values::of(array( 'StartDate' => Serialize::iso8601Date($startDate), 'EndDate' => Serialize::iso8601Date($endDate), 'IncludeSubaccounts' => Serialize::booleanToString($options['includeSubaccounts']), 'StatusCallback' => $options['statusCallback'], 'StatusCallbackMethod' => $options['statusCallbackMethod'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new FeedbackSummaryInstance($this->version, $payload, $this->solution['accountSid']); }
[ "public", "function", "create", "(", "$", "startDate", ",", "$", "endDate", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'StartDate'", "=>", "Serialize", "::", "iso8601Date", "(", "$", "startDate", ")", ",", "'EndDate'", "=>", "Serialize", "::", "iso8601Date", "(", "$", "endDate", ")", ",", "'IncludeSubaccounts'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'includeSubaccounts'", "]", ")", ",", "'StatusCallback'", "=>", "$", "options", "[", "'statusCallback'", "]", ",", "'StatusCallbackMethod'", "=>", "$", "options", "[", "'statusCallbackMethod'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "FeedbackSummaryInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}" ]
Create a new FeedbackSummaryInstance @param \DateTime $startDate Only include feedback given on or after this date @param \DateTime $endDate Only include feedback given on or before this date @param array|Options $options Optional Arguments @return FeedbackSummaryInstance Newly created FeedbackSummaryInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "FeedbackSummaryInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryList.php#L44-L63
train
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/MessageContext.php
MessageContext.update
public function update($body) { $data = Values::of(array('Body' => $body, )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new MessageInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['sid'] ); }
php
public function update($body) { $data = Values::of(array('Body' => $body, )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new MessageInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['sid'] ); }
[ "public", "function", "update", "(", "$", "body", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Body'", "=>", "$", "body", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "update", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "MessageInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}" ]
Update the MessageInstance @param string $body The text of the message you want to send @return MessageInstance Updated MessageInstance @throws TwilioException When an HTTP error occurs.
[ "Update", "the", "MessageInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/MessageContext.php#L86-L102
train
twilio/twilio-php
Twilio/Rest/Serverless/V1/Service/TwilioFunction/FunctionVersionList.php
FunctionVersionList.create
public function create($path, $visibility) { $data = Values::of(array('Path' => $path, 'Visibility' => $visibility, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new FunctionVersionInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['functionSid'] ); }
php
public function create($path, $visibility) { $data = Values::of(array('Path' => $path, 'Visibility' => $visibility, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new FunctionVersionInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['functionSid'] ); }
[ "public", "function", "create", "(", "$", "path", ",", "$", "visibility", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Path'", "=>", "$", "path", ",", "'Visibility'", "=>", "$", "visibility", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "FunctionVersionInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'functionSid'", "]", ")", ";", "}" ]
Create a new FunctionVersionInstance @param string $path The URL-friendly string by which this Function Version can be referenced. @param string $visibility The access control which determines how the Function Version can be accessed. @return FunctionVersionInstance Newly created FunctionVersionInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "FunctionVersionInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Serverless/V1/Service/TwilioFunction/FunctionVersionList.php#L133-L149
train
twilio/twilio-php
Twilio/Rest/Serverless/V1/Service/TwilioFunction/FunctionVersionList.php
FunctionVersionList.getContext
public function getContext($sid) { return new FunctionVersionContext( $this->version, $this->solution['serviceSid'], $this->solution['functionSid'], $sid ); }
php
public function getContext($sid) { return new FunctionVersionContext( $this->version, $this->solution['serviceSid'], $this->solution['functionSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "FunctionVersionContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'functionSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a FunctionVersionContext @param string $sid Function Version Sid. @return \Twilio\Rest\Serverless\V1\Service\TwilioFunction\FunctionVersionContext
[ "Constructs", "a", "FunctionVersionContext" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Serverless/V1/Service/TwilioFunction/FunctionVersionList.php#L157-L164
train
twilio/twilio-php
Twilio/Rest/Accounts/V1/CredentialList.php
CredentialList.getPublicKey
protected function getPublicKey() { if (!$this->_publicKey) { $this->_publicKey = new PublicKeyList($this->version); } return $this->_publicKey; }
php
protected function getPublicKey() { if (!$this->_publicKey) { $this->_publicKey = new PublicKeyList($this->version); } return $this->_publicKey; }
[ "protected", "function", "getPublicKey", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_publicKey", ")", "{", "$", "this", "->", "_publicKey", "=", "new", "PublicKeyList", "(", "$", "this", "->", "version", ")", ";", "}", "return", "$", "this", "->", "_publicKey", ";", "}" ]
Access the publicKey
[ "Access", "the", "publicKey" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Accounts/V1/CredentialList.php#L44-L50
train
twilio/twilio-php
Twilio/Rest/Accounts/V1/CredentialList.php
CredentialList.getAws
protected function getAws() { if (!$this->_aws) { $this->_aws = new AwsList($this->version); } return $this->_aws; }
php
protected function getAws() { if (!$this->_aws) { $this->_aws = new AwsList($this->version); } return $this->_aws; }
[ "protected", "function", "getAws", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_aws", ")", "{", "$", "this", "->", "_aws", "=", "new", "AwsList", "(", "$", "this", "->", "version", ")", ";", "}", "return", "$", "this", "->", "_aws", ";", "}" ]
Access the aws
[ "Access", "the", "aws" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Accounts/V1/CredentialList.php#L55-L61
train
twilio/twilio-php
Twilio/Rest/Chat/V2/Service/User/UserChannelContext.php
UserChannelContext.update
public function update($notificationLevel) { $data = Values::of(array('NotificationLevel' => $notificationLevel, )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new UserChannelInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['userSid'], $this->solution['channelSid'] ); }
php
public function update($notificationLevel) { $data = Values::of(array('NotificationLevel' => $notificationLevel, )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new UserChannelInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['userSid'], $this->solution['channelSid'] ); }
[ "public", "function", "update", "(", "$", "notificationLevel", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'NotificationLevel'", "=>", "$", "notificationLevel", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "update", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "UserChannelInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'userSid'", "]", ",", "$", "this", "->", "solution", "[", "'channelSid'", "]", ")", ";", "}" ]
Update the UserChannelInstance @param string $notificationLevel The push notification level to assign to the User Channel @return UserChannelInstance Updated UserChannelInstance @throws TwilioException When an HTTP error occurs.
[ "Update", "the", "UserChannelInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Chat/V2/Service/User/UserChannelContext.php#L74-L91
train
twilio/twilio-php
Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateList.php
CertificateList.create
public function create($certificateData, $options = array()) { $options = new Values($options); $data = Values::of(array( 'CertificateData' => $certificateData, 'FriendlyName' => $options['friendlyName'], 'DeviceSid' => $options['deviceSid'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new CertificateInstance($this->version, $payload, $this->solution['fleetSid']); }
php
public function create($certificateData, $options = array()) { $options = new Values($options); $data = Values::of(array( 'CertificateData' => $certificateData, 'FriendlyName' => $options['friendlyName'], 'DeviceSid' => $options['deviceSid'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new CertificateInstance($this->version, $payload, $this->solution['fleetSid']); }
[ "public", "function", "create", "(", "$", "certificateData", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'CertificateData'", "=>", "$", "certificateData", ",", "'FriendlyName'", "=>", "$", "options", "[", "'friendlyName'", "]", ",", "'DeviceSid'", "=>", "$", "options", "[", "'deviceSid'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "CertificateInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'fleetSid'", "]", ")", ";", "}" ]
Create a new CertificateInstance @param string $certificateData The public certificate data. @param array|Options $options Optional Arguments @return CertificateInstance Newly created CertificateInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "CertificateInstance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateList.php#L45-L62
train
twilio/twilio-php
Twilio/Rest/Preview/Sync/ServiceContext.php
ServiceContext.getDocuments
protected function getDocuments() { if (!$this->_documents) { $this->_documents = new DocumentList($this->version, $this->solution['sid']); } return $this->_documents; }
php
protected function getDocuments() { if (!$this->_documents) { $this->_documents = new DocumentList($this->version, $this->solution['sid']); } return $this->_documents; }
[ "protected", "function", "getDocuments", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_documents", ")", "{", "$", "this", "->", "_documents", "=", "new", "DocumentList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_documents", ";", "}" ]
Access the documents @return \Twilio\Rest\Preview\Sync\Service\DocumentList
[ "Access", "the", "documents" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/ServiceContext.php#L113-L119
train
twilio/twilio-php
Twilio/Rest/Preview/Sync/ServiceContext.php
ServiceContext.getSyncLists
protected function getSyncLists() { if (!$this->_syncLists) { $this->_syncLists = new SyncListList($this->version, $this->solution['sid']); } return $this->_syncLists; }
php
protected function getSyncLists() { if (!$this->_syncLists) { $this->_syncLists = new SyncListList($this->version, $this->solution['sid']); } return $this->_syncLists; }
[ "protected", "function", "getSyncLists", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_syncLists", ")", "{", "$", "this", "->", "_syncLists", "=", "new", "SyncListList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_syncLists", ";", "}" ]
Access the syncLists @return \Twilio\Rest\Preview\Sync\Service\SyncListList
[ "Access", "the", "syncLists" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/ServiceContext.php#L126-L132
train
twilio/twilio-php
Twilio/Rest/Preview/Sync/ServiceContext.php
ServiceContext.getSyncMaps
protected function getSyncMaps() { if (!$this->_syncMaps) { $this->_syncMaps = new SyncMapList($this->version, $this->solution['sid']); } return $this->_syncMaps; }
php
protected function getSyncMaps() { if (!$this->_syncMaps) { $this->_syncMaps = new SyncMapList($this->version, $this->solution['sid']); } return $this->_syncMaps; }
[ "protected", "function", "getSyncMaps", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_syncMaps", ")", "{", "$", "this", "->", "_syncMaps", "=", "new", "SyncMapList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_syncMaps", ";", "}" ]
Access the syncMaps @return \Twilio\Rest\Preview\Sync\Service\SyncMapList
[ "Access", "the", "syncMaps" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/ServiceContext.php#L139-L145
train
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelList.php
WorkerChannelList.getContext
public function getContext($sid) { return new WorkerChannelContext( $this->version, $this->solution['workspaceSid'], $this->solution['workerSid'], $sid ); }
php
public function getContext($sid) { return new WorkerChannelContext( $this->version, $this->solution['workspaceSid'], $this->solution['workerSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "WorkerChannelContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ",", "$", "this", "->", "solution", "[", "'workerSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a WorkerChannelContext @param string $sid The sid @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkerChannelContext
[ "Constructs", "a", "WorkerChannelContext" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelList.php#L128-L135
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getAddresses
protected function getAddresses() { if (!$this->_addresses) { $this->_addresses = new AddressList($this->version, $this->solution['sid']); } return $this->_addresses; }
php
protected function getAddresses() { if (!$this->_addresses) { $this->_addresses = new AddressList($this->version, $this->solution['sid']); } return $this->_addresses; }
[ "protected", "function", "getAddresses", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_addresses", ")", "{", "$", "this", "->", "_addresses", "=", "new", "AddressList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_addresses", ";", "}" ]
Access the addresses @return \Twilio\Rest\Api\V2010\Account\AddressList
[ "Access", "the", "addresses" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L175-L181
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getApplications
protected function getApplications() { if (!$this->_applications) { $this->_applications = new ApplicationList($this->version, $this->solution['sid']); } return $this->_applications; }
php
protected function getApplications() { if (!$this->_applications) { $this->_applications = new ApplicationList($this->version, $this->solution['sid']); } return $this->_applications; }
[ "protected", "function", "getApplications", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_applications", ")", "{", "$", "this", "->", "_applications", "=", "new", "ApplicationList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_applications", ";", "}" ]
Access the applications @return \Twilio\Rest\Api\V2010\Account\ApplicationList
[ "Access", "the", "applications" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L188-L194
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getAuthorizedConnectApps
protected function getAuthorizedConnectApps() { if (!$this->_authorizedConnectApps) { $this->_authorizedConnectApps = new AuthorizedConnectAppList( $this->version, $this->solution['sid'] ); } return $this->_authorizedConnectApps; }
php
protected function getAuthorizedConnectApps() { if (!$this->_authorizedConnectApps) { $this->_authorizedConnectApps = new AuthorizedConnectAppList( $this->version, $this->solution['sid'] ); } return $this->_authorizedConnectApps; }
[ "protected", "function", "getAuthorizedConnectApps", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_authorizedConnectApps", ")", "{", "$", "this", "->", "_authorizedConnectApps", "=", "new", "AuthorizedConnectAppList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_authorizedConnectApps", ";", "}" ]
Access the authorizedConnectApps @return \Twilio\Rest\Api\V2010\Account\AuthorizedConnectAppList
[ "Access", "the", "authorizedConnectApps" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L201-L210
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getAvailablePhoneNumbers
protected function getAvailablePhoneNumbers() { if (!$this->_availablePhoneNumbers) { $this->_availablePhoneNumbers = new AvailablePhoneNumberCountryList( $this->version, $this->solution['sid'] ); } return $this->_availablePhoneNumbers; }
php
protected function getAvailablePhoneNumbers() { if (!$this->_availablePhoneNumbers) { $this->_availablePhoneNumbers = new AvailablePhoneNumberCountryList( $this->version, $this->solution['sid'] ); } return $this->_availablePhoneNumbers; }
[ "protected", "function", "getAvailablePhoneNumbers", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_availablePhoneNumbers", ")", "{", "$", "this", "->", "_availablePhoneNumbers", "=", "new", "AvailablePhoneNumberCountryList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_availablePhoneNumbers", ";", "}" ]
Access the availablePhoneNumbers @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountryList
[ "Access", "the", "availablePhoneNumbers" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L217-L226
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getBalance
protected function getBalance() { if (!$this->_balance) { $this->_balance = new BalanceList($this->version, $this->solution['sid']); } return $this->_balance; }
php
protected function getBalance() { if (!$this->_balance) { $this->_balance = new BalanceList($this->version, $this->solution['sid']); } return $this->_balance; }
[ "protected", "function", "getBalance", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_balance", ")", "{", "$", "this", "->", "_balance", "=", "new", "BalanceList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_balance", ";", "}" ]
Access the balance @return \Twilio\Rest\Api\V2010\Account\BalanceList
[ "Access", "the", "balance" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L233-L239
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getConferences
protected function getConferences() { if (!$this->_conferences) { $this->_conferences = new ConferenceList($this->version, $this->solution['sid']); } return $this->_conferences; }
php
protected function getConferences() { if (!$this->_conferences) { $this->_conferences = new ConferenceList($this->version, $this->solution['sid']); } return $this->_conferences; }
[ "protected", "function", "getConferences", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_conferences", ")", "{", "$", "this", "->", "_conferences", "=", "new", "ConferenceList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_conferences", ";", "}" ]
Access the conferences @return \Twilio\Rest\Api\V2010\Account\ConferenceList
[ "Access", "the", "conferences" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L259-L265
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getConnectApps
protected function getConnectApps() { if (!$this->_connectApps) { $this->_connectApps = new ConnectAppList($this->version, $this->solution['sid']); } return $this->_connectApps; }
php
protected function getConnectApps() { if (!$this->_connectApps) { $this->_connectApps = new ConnectAppList($this->version, $this->solution['sid']); } return $this->_connectApps; }
[ "protected", "function", "getConnectApps", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_connectApps", ")", "{", "$", "this", "->", "_connectApps", "=", "new", "ConnectAppList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_connectApps", ";", "}" ]
Access the connectApps @return \Twilio\Rest\Api\V2010\Account\ConnectAppList
[ "Access", "the", "connectApps" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L272-L278
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getIncomingPhoneNumbers
protected function getIncomingPhoneNumbers() { if (!$this->_incomingPhoneNumbers) { $this->_incomingPhoneNumbers = new IncomingPhoneNumberList($this->version, $this->solution['sid']); } return $this->_incomingPhoneNumbers; }
php
protected function getIncomingPhoneNumbers() { if (!$this->_incomingPhoneNumbers) { $this->_incomingPhoneNumbers = new IncomingPhoneNumberList($this->version, $this->solution['sid']); } return $this->_incomingPhoneNumbers; }
[ "protected", "function", "getIncomingPhoneNumbers", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_incomingPhoneNumbers", ")", "{", "$", "this", "->", "_incomingPhoneNumbers", "=", "new", "IncomingPhoneNumberList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_incomingPhoneNumbers", ";", "}" ]
Access the incomingPhoneNumbers @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumberList
[ "Access", "the", "incomingPhoneNumbers" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L285-L291
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getKeys
protected function getKeys() { if (!$this->_keys) { $this->_keys = new KeyList($this->version, $this->solution['sid']); } return $this->_keys; }
php
protected function getKeys() { if (!$this->_keys) { $this->_keys = new KeyList($this->version, $this->solution['sid']); } return $this->_keys; }
[ "protected", "function", "getKeys", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_keys", ")", "{", "$", "this", "->", "_keys", "=", "new", "KeyList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_keys", ";", "}" ]
Access the keys @return \Twilio\Rest\Api\V2010\Account\KeyList
[ "Access", "the", "keys" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L298-L304
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getNewKeys
protected function getNewKeys() { if (!$this->_newKeys) { $this->_newKeys = new NewKeyList($this->version, $this->solution['sid']); } return $this->_newKeys; }
php
protected function getNewKeys() { if (!$this->_newKeys) { $this->_newKeys = new NewKeyList($this->version, $this->solution['sid']); } return $this->_newKeys; }
[ "protected", "function", "getNewKeys", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_newKeys", ")", "{", "$", "this", "->", "_newKeys", "=", "new", "NewKeyList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_newKeys", ";", "}" ]
Access the newKeys @return \Twilio\Rest\Api\V2010\Account\NewKeyList
[ "Access", "the", "newKeys" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L324-L330
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getNewSigningKeys
protected function getNewSigningKeys() { if (!$this->_newSigningKeys) { $this->_newSigningKeys = new NewSigningKeyList($this->version, $this->solution['sid']); } return $this->_newSigningKeys; }
php
protected function getNewSigningKeys() { if (!$this->_newSigningKeys) { $this->_newSigningKeys = new NewSigningKeyList($this->version, $this->solution['sid']); } return $this->_newSigningKeys; }
[ "protected", "function", "getNewSigningKeys", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_newSigningKeys", ")", "{", "$", "this", "->", "_newSigningKeys", "=", "new", "NewSigningKeyList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_newSigningKeys", ";", "}" ]
Access the newSigningKeys @return \Twilio\Rest\Api\V2010\Account\NewSigningKeyList
[ "Access", "the", "newSigningKeys" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L337-L343
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getOutgoingCallerIds
protected function getOutgoingCallerIds() { if (!$this->_outgoingCallerIds) { $this->_outgoingCallerIds = new OutgoingCallerIdList($this->version, $this->solution['sid']); } return $this->_outgoingCallerIds; }
php
protected function getOutgoingCallerIds() { if (!$this->_outgoingCallerIds) { $this->_outgoingCallerIds = new OutgoingCallerIdList($this->version, $this->solution['sid']); } return $this->_outgoingCallerIds; }
[ "protected", "function", "getOutgoingCallerIds", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_outgoingCallerIds", ")", "{", "$", "this", "->", "_outgoingCallerIds", "=", "new", "OutgoingCallerIdList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_outgoingCallerIds", ";", "}" ]
Access the outgoingCallerIds @return \Twilio\Rest\Api\V2010\Account\OutgoingCallerIdList
[ "Access", "the", "outgoingCallerIds" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L363-L369
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getQueues
protected function getQueues() { if (!$this->_queues) { $this->_queues = new QueueList($this->version, $this->solution['sid']); } return $this->_queues; }
php
protected function getQueues() { if (!$this->_queues) { $this->_queues = new QueueList($this->version, $this->solution['sid']); } return $this->_queues; }
[ "protected", "function", "getQueues", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_queues", ")", "{", "$", "this", "->", "_queues", "=", "new", "QueueList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_queues", ";", "}" ]
Access the queues @return \Twilio\Rest\Api\V2010\Account\QueueList
[ "Access", "the", "queues" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L376-L382
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getSigningKeys
protected function getSigningKeys() { if (!$this->_signingKeys) { $this->_signingKeys = new SigningKeyList($this->version, $this->solution['sid']); } return $this->_signingKeys; }
php
protected function getSigningKeys() { if (!$this->_signingKeys) { $this->_signingKeys = new SigningKeyList($this->version, $this->solution['sid']); } return $this->_signingKeys; }
[ "protected", "function", "getSigningKeys", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_signingKeys", ")", "{", "$", "this", "->", "_signingKeys", "=", "new", "SigningKeyList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_signingKeys", ";", "}" ]
Access the signingKeys @return \Twilio\Rest\Api\V2010\Account\SigningKeyList
[ "Access", "the", "signingKeys" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L402-L408
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getSip
protected function getSip() { if (!$this->_sip) { $this->_sip = new SipList($this->version, $this->solution['sid']); } return $this->_sip; }
php
protected function getSip() { if (!$this->_sip) { $this->_sip = new SipList($this->version, $this->solution['sid']); } return $this->_sip; }
[ "protected", "function", "getSip", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_sip", ")", "{", "$", "this", "->", "_sip", "=", "new", "SipList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_sip", ";", "}" ]
Access the sip @return \Twilio\Rest\Api\V2010\Account\SipList
[ "Access", "the", "sip" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L415-L421
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getTokens
protected function getTokens() { if (!$this->_tokens) { $this->_tokens = new TokenList($this->version, $this->solution['sid']); } return $this->_tokens; }
php
protected function getTokens() { if (!$this->_tokens) { $this->_tokens = new TokenList($this->version, $this->solution['sid']); } return $this->_tokens; }
[ "protected", "function", "getTokens", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_tokens", ")", "{", "$", "this", "->", "_tokens", "=", "new", "TokenList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_tokens", ";", "}" ]
Access the tokens @return \Twilio\Rest\Api\V2010\Account\TokenList
[ "Access", "the", "tokens" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L441-L447
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getTranscriptions
protected function getTranscriptions() { if (!$this->_transcriptions) { $this->_transcriptions = new TranscriptionList($this->version, $this->solution['sid']); } return $this->_transcriptions; }
php
protected function getTranscriptions() { if (!$this->_transcriptions) { $this->_transcriptions = new TranscriptionList($this->version, $this->solution['sid']); } return $this->_transcriptions; }
[ "protected", "function", "getTranscriptions", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_transcriptions", ")", "{", "$", "this", "->", "_transcriptions", "=", "new", "TranscriptionList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_transcriptions", ";", "}" ]
Access the transcriptions @return \Twilio\Rest\Api\V2010\Account\TranscriptionList
[ "Access", "the", "transcriptions" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L454-L460
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getUsage
protected function getUsage() { if (!$this->_usage) { $this->_usage = new UsageList($this->version, $this->solution['sid']); } return $this->_usage; }
php
protected function getUsage() { if (!$this->_usage) { $this->_usage = new UsageList($this->version, $this->solution['sid']); } return $this->_usage; }
[ "protected", "function", "getUsage", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_usage", ")", "{", "$", "this", "->", "_usage", "=", "new", "UsageList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_usage", ";", "}" ]
Access the usage @return \Twilio\Rest\Api\V2010\Account\UsageList
[ "Access", "the", "usage" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L467-L473
train
twilio/twilio-php
Twilio/Rest/Api/V2010/AccountContext.php
AccountContext.getValidationRequests
protected function getValidationRequests() { if (!$this->_validationRequests) { $this->_validationRequests = new ValidationRequestList($this->version, $this->solution['sid']); } return $this->_validationRequests; }
php
protected function getValidationRequests() { if (!$this->_validationRequests) { $this->_validationRequests = new ValidationRequestList($this->version, $this->solution['sid']); } return $this->_validationRequests; }
[ "protected", "function", "getValidationRequests", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_validationRequests", ")", "{", "$", "this", "->", "_validationRequests", "=", "new", "ValidationRequestList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_validationRequests", ";", "}" ]
Access the validationRequests @return \Twilio\Rest\Api\V2010\Account\ValidationRequestList
[ "Access", "the", "validationRequests" ]
58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/AccountContext.php#L480-L486
train