code
stringlengths
15
9.96M
docstring
stringlengths
1
10.1k
func_name
stringlengths
1
124
language
stringclasses
1 value
repo
stringlengths
7
63
path
stringlengths
6
186
url
stringlengths
50
236
license
stringclasses
4 values
public function __construct(Version $version, Response $response, array $solution) { parent::__construct($version, $response); // Path Solution $this->solution = $solution; }
@param Version $version Version that contains the resource @param Response $response Response from the API @param array $solution The context solution
__construct
php
twilio/twilio-php
src/Twilio/Rest/Microvisor/V1/App/AppManifestPage.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Microvisor/V1/App/AppManifestPage.php
MIT
public function __construct( Version $version, string $appSid ) { parent::__construct($version); // Path Solution $this->solution = [ 'appSid' => $appSid, ]; }
Construct the AppManifestList @param Version $version Version that contains the resource @param string $appSid A 34-character string that uniquely identifies this App.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Microvisor/V1/App/AppManifestList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Microvisor/V1/App/AppManifestList.php
MIT
public function __get(string $name) { if (\array_key_exists($name, $this->properties)) { return $this->properties[$name]; } if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown property: ' . $name); }
Magic getter to access properties @param string $name Property to access @return mixed The requested property @throws TwilioException For unknown properties
__get
php
twilio/twilio-php
src/Twilio/Rest/Microvisor/V1/App/AppManifestInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Microvisor/V1/App/AppManifestInstance.php
MIT
public function __construct( Version $version, $appSid ) { parent::__construct($version); // Path Solution $this->solution = [ 'appSid' => $appSid, ]; $this->uri = '/Apps/' . \rawurlencode($appSid) .'/Manifest'; }
Initialize the AppManifestContext @param Version $version Version that contains the resource @param string $appSid A 34-character string that uniquely identifies this App.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Microvisor/V1/App/AppManifestContext.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Microvisor/V1/App/AppManifestContext.php
MIT
public function __construct(Domain $domain) { parent::__construct($domain); $this->version = 'v1'; }
Construct the V1 version of Oauth @param Domain $domain Domain that contains the version
__construct
php
twilio/twilio-php
src/Twilio/Rest/Oauth/V1.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Oauth/V1.php
MIT
public function __get(string $name) { $method = 'get' . \ucfirst($name); if (\method_exists($this, $method)) { return $this->$method(); } throw new TwilioException('Unknown resource ' . $name); }
Magic getter to lazy load root resources @param string $name Resource to return @return \Twilio\ListResource The requested resource @throws TwilioException For unknown resource
__get
php
twilio/twilio-php
src/Twilio/Rest/Oauth/V1.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Oauth/V1.php
MIT
public function __construct(Version $version, array $payload) { parent::__construct($version); // Marshaled Properties $this->properties = [ 'accessToken' => Values::array_get($payload, 'access_token'), 'refreshToken' => Values::array_get($payload, 'refresh_token'), 'idToken' => Values::array_get($payload, 'id_token'), 'tokenType' => Values::array_get($payload, 'token_type'), 'expiresIn' => Values::array_get($payload, 'expires_in'), ]; $this->solution = []; }
Initialize the TokenInstance @param Version $version Version that contains the resource @param mixed[] $payload The response payload
__construct
php
twilio/twilio-php
src/Twilio/Rest/Oauth/V1/TokenInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Oauth/V1/TokenInstance.php
MIT
public function __get(string $name) { if (\array_key_exists($name, $this->properties)) { return $this->properties[$name]; } if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown property: ' . $name); }
Magic getter to access properties @param string $name Property to access @return mixed The requested property @throws TwilioException For unknown properties
__get
php
twilio/twilio-php
src/Twilio/Rest/Oauth/V1/TokenInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Oauth/V1/TokenInstance.php
MIT
public function __construct(Version $version, array $payload) { parent::__construct($version); // Marshaled Properties $this->properties = [ 'redirectTo' => Values::array_get($payload, 'redirect_to'), ]; $this->solution = []; }
Initialize the AuthorizeInstance @param Version $version Version that contains the resource @param mixed[] $payload The response payload
__construct
php
twilio/twilio-php
src/Twilio/Rest/Oauth/V1/AuthorizeInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Oauth/V1/AuthorizeInstance.php
MIT
public function __get(string $name) { if (\array_key_exists($name, $this->properties)) { return $this->properties[$name]; } if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown property: ' . $name); }
Magic getter to access properties @param string $name Property to access @return mixed The requested property @throws TwilioException For unknown properties
__get
php
twilio/twilio-php
src/Twilio/Rest/Oauth/V1/AuthorizeInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Oauth/V1/AuthorizeInstance.php
MIT
public function __construct( Version $version ) { parent::__construct($version); // Path Solution $this->solution = [ ]; $this->uri = '/token'; }
Construct the TokenList @param Version $version Version that contains the resource
__construct
php
twilio/twilio-php
src/Twilio/Rest/Oauth/V1/TokenList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Oauth/V1/TokenList.php
MIT
public function __construct( string $responseType = Values::NONE, string $clientId = Values::NONE, string $redirectUri = Values::NONE, string $scope = Values::NONE, string $state = Values::NONE ) { $this->options['responseType'] = $responseType; $this->options['clientId'] = $clientId; $this->options['redirectUri'] = $redirectUri; $this->options['scope'] = $scope; $this->options['state'] = $state; }
@param string $responseType Response Type @param string $clientId The Client Identifier @param string $redirectUri The url to which response will be redirected to @param string $scope The scope of the access request @param string $state An opaque value which can be used to maintain state between the request and callback
__construct
php
twilio/twilio-php
src/Twilio/Rest/Oauth/V1/AuthorizeOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Oauth/V1/AuthorizeOptions.php
MIT
public function __construct( Version $version ) { parent::__construct($version); // Path Solution $this->solution = [ ]; $this->uri = '/authorize'; }
Construct the AuthorizeList @param Version $version Version that contains the resource
__construct
php
twilio/twilio-php
src/Twilio/Rest/Oauth/V1/AuthorizeList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Oauth/V1/AuthorizeList.php
MIT
public function __construct( string $clientSecret = Values::NONE, string $code = Values::NONE, string $redirectUri = Values::NONE, string $audience = Values::NONE, string $refreshToken = Values::NONE, string $scope = Values::NONE ) { $this->options['clientSecret'] = $clientSecret; $this->options['code'] = $code; $this->options['redirectUri'] = $redirectUri; $this->options['audience'] = $audience; $this->options['refreshToken'] = $refreshToken; $this->options['scope'] = $scope; }
@param string $clientSecret The credential for confidential OAuth App. @param string $code JWT token related to the authorization code grant type. @param string $redirectUri The redirect uri @param string $audience The targeted audience uri @param string $refreshToken JWT token related to refresh access token. @param string $scope The scope of token
__construct
php
twilio/twilio-php
src/Twilio/Rest/Oauth/V1/TokenOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Oauth/V1/TokenOptions.php
MIT
public function __construct(Version $version, Response $response, array $solution) { parent::__construct($version, $response); // Path Solution $this->solution = $solution; }
@param Version $version Version that contains the resource @param Response $response Response from the API @param array $solution The context solution
__construct
php
twilio/twilio-php
src/Twilio/Rest/Oauth/V1/AuthorizePage.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Oauth/V1/AuthorizePage.php
MIT
public function __construct(Version $version, Response $response, array $solution) { parent::__construct($version, $response); // Path Solution $this->solution = $solution; }
@param Version $version Version that contains the resource @param Response $response Response from the API @param array $solution The context solution
__construct
php
twilio/twilio-php
src/Twilio/Rest/Oauth/V1/TokenPage.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Oauth/V1/TokenPage.php
MIT
public function __construct(Domain $domain) { parent::__construct($domain); $this->version = 'HostedNumbers'; }
Construct the HostedNumbers version of Preview @param Domain $domain Domain that contains the version
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers.php
MIT
public function __get(string $name) { $method = 'get' . \ucfirst($name); if (\method_exists($this, $method)) { return $this->$method(); } throw new TwilioException('Unknown resource ' . $name); }
Magic getter to lazy load root resources @param string $name Resource to return @return \Twilio\ListResource The requested resource @throws TwilioException For unknown resource
__get
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers.php
MIT
public function __construct(Domain $domain) { parent::__construct($domain); $this->version = 'marketplace'; }
Construct the Marketplace version of Preview @param Domain $domain Domain that contains the version
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace.php
MIT
public function __get(string $name) { $method = 'get' . \ucfirst($name); if (\method_exists($this, $method)) { return $this->$method(); } throw new TwilioException('Unknown resource ' . $name); }
Magic getter to lazy load root resources @param string $name Resource to return @return \Twilio\ListResource The requested resource @throws TwilioException For unknown resource
__get
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace.php
MIT
public function __construct(Domain $domain) { parent::__construct($domain); $this->version = 'wireless'; }
Construct the Wireless version of Preview @param Domain $domain Domain that contains the version
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless.php
MIT
public function __get(string $name) { $method = 'get' . \ucfirst($name); if (\method_exists($this, $method)) { return $this->$method(); } throw new TwilioException('Unknown resource ' . $name); }
Magic getter to lazy load root resources @param string $name Resource to return @return \Twilio\ListResource The requested resource @throws TwilioException For unknown resource
__get
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless.php
MIT
public function __construct(Version $version, Response $response, array $solution) { parent::__construct($version, $response); // Path Solution $this->solution = $solution; }
@param Version $version Version that contains the resource @param Response $response Response from the API @param array $solution The context solution
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace/AvailableAddOnPage.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace/AvailableAddOnPage.php
MIT
public function __get(string $name) { if (\array_key_exists($name, $this->properties)) { return $this->properties[$name]; } if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown property: ' . $name); }
Magic getter to access properties @param string $name Property to access @return mixed The requested property @throws TwilioException For unknown properties
__get
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace/InstalledAddOnInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace/InstalledAddOnInstance.php
MIT
public function __construct( Version $version ) { parent::__construct($version); // Path Solution $this->solution = [ ]; $this->uri = '/AvailableAddOns'; }
Construct the AvailableAddOnList @param Version $version Version that contains the resource
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace/AvailableAddOnList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace/AvailableAddOnList.php
MIT
public function __construct( array $configuration = Values::ARRAY_NONE, string $uniqueName = Values::NONE ) { $this->options['configuration'] = $configuration; $this->options['uniqueName'] = $uniqueName; }
@param array $configuration The JSON object that represents the configuration of the new Add-on being installed. @param string $uniqueName An application-defined string that uniquely identifies the resource. This value must be unique within the Account.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace/InstalledAddOnOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace/InstalledAddOnOptions.php
MIT
public function __construct( array $configuration = Values::ARRAY_NONE, string $uniqueName = Values::NONE ) { $this->options['configuration'] = $configuration; $this->options['uniqueName'] = $uniqueName; }
@param array $configuration Valid JSON object that conform to the configuration schema exposed by the associated AvailableAddOn resource. This is only required by Add-ons that need to be configured @param string $uniqueName An application-defined string that uniquely identifies the resource. This value must be unique within the Account.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace/InstalledAddOnOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace/InstalledAddOnOptions.php
MIT
public function __construct( Version $version, $sid ) { parent::__construct($version); // Path Solution $this->solution = [ 'sid' => $sid, ]; $this->uri = '/InstalledAddOns/' . \rawurlencode($sid) .''; }
Initialize the InstalledAddOnContext @param Version $version Version that contains the resource @param string $sid The SID of the InstalledAddOn resource to delete.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace/InstalledAddOnContext.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace/InstalledAddOnContext.php
MIT
public function __construct( Version $version ) { parent::__construct($version); // Path Solution $this->solution = [ ]; $this->uri = '/InstalledAddOns'; }
Construct the InstalledAddOnList @param Version $version Version that contains the resource
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace/InstalledAddOnList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace/InstalledAddOnList.php
MIT
public function __construct( Version $version, $sid ) { parent::__construct($version); // Path Solution $this->solution = [ 'sid' => $sid, ]; $this->uri = '/AvailableAddOns/' . \rawurlencode($sid) .''; }
Initialize the AvailableAddOnContext @param Version $version Version that contains the resource @param string $sid The SID of the AvailableAddOn resource to fetch.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace/AvailableAddOnContext.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace/AvailableAddOnContext.php
MIT
public function __get(string $name) { if (\array_key_exists($name, $this->properties)) { return $this->properties[$name]; } if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown property: ' . $name); }
Magic getter to access properties @param string $name Property to access @return mixed The requested property @throws TwilioException For unknown properties
__get
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace/AvailableAddOnInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace/AvailableAddOnInstance.php
MIT
public function __construct(Version $version, Response $response, array $solution) { parent::__construct($version, $response); // Path Solution $this->solution = $solution; }
@param Version $version Version that contains the resource @param Response $response Response from the API @param array $solution The context solution
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace/InstalledAddOnPage.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace/InstalledAddOnPage.php
MIT
public function __construct( Version $version, $installedAddOnSid, $sid ) { parent::__construct($version); // Path Solution $this->solution = [ 'installedAddOnSid' => $installedAddOnSid, 'sid' => $sid, ]; $this->uri = '/InstalledAddOns/' . \rawurlencode($installedAddOnSid) .'/Extensions/' . \rawurlencode($sid) .''; }
Initialize the InstalledAddOnExtensionContext @param Version $version Version that contains the resource @param string $installedAddOnSid The SID of the InstalledAddOn resource with the extension to fetch. @param string $sid The SID of the InstalledAddOn Extension resource to fetch.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionContext.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionContext.php
MIT
public function __get(string $name) { if (\array_key_exists($name, $this->properties)) { return $this->properties[$name]; } if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown property: ' . $name); }
Magic getter to access properties @param string $name Property to access @return mixed The requested property @throws TwilioException For unknown properties
__get
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionInstance.php
MIT
public function __construct( Version $version, string $installedAddOnSid ) { parent::__construct($version); // Path Solution $this->solution = [ 'installedAddOnSid' => $installedAddOnSid, ]; $this->uri = '/InstalledAddOns/' . \rawurlencode($installedAddOnSid) .'/Extensions'; }
Construct the InstalledAddOnExtensionList @param Version $version Version that contains the resource @param string $installedAddOnSid The SID of the InstalledAddOn resource with the extension to fetch.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionList.php
MIT
public function __construct(Version $version, Response $response, array $solution) { parent::__construct($version, $response); // Path Solution $this->solution = $solution; }
@param Version $version Version that contains the resource @param Response $response Response from the API @param array $solution The context solution
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionPage.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionPage.php
MIT
public function __get(string $name) { if (\array_key_exists($name, $this->properties)) { return $this->properties[$name]; } if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown property: ' . $name); }
Magic getter to access properties @param string $name Property to access @return mixed The requested property @throws TwilioException For unknown properties
__get
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionInstance.php
MIT
public function __construct( Version $version, string $availableAddOnSid ) { parent::__construct($version); // Path Solution $this->solution = [ 'availableAddOnSid' => $availableAddOnSid, ]; $this->uri = '/AvailableAddOns/' . \rawurlencode($availableAddOnSid) .'/Extensions'; }
Construct the AvailableAddOnExtensionList @param Version $version Version that contains the resource @param string $availableAddOnSid The SID of the AvailableAddOn resource with the extension to fetch.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionList.php
MIT
public function __construct(Version $version, Response $response, array $solution) { parent::__construct($version, $response); // Path Solution $this->solution = $solution; }
@param Version $version Version that contains the resource @param Response $response Response from the API @param array $solution The context solution
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionPage.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionPage.php
MIT
public function __construct( Version $version, $availableAddOnSid, $sid ) { parent::__construct($version); // Path Solution $this->solution = [ 'availableAddOnSid' => $availableAddOnSid, 'sid' => $sid, ]; $this->uri = '/AvailableAddOns/' . \rawurlencode($availableAddOnSid) .'/Extensions/' . \rawurlencode($sid) .''; }
Initialize the AvailableAddOnExtensionContext @param Version $version Version that contains the resource @param string $availableAddOnSid The SID of the AvailableAddOn resource with the extension to fetch. @param string $sid The SID of the AvailableAddOn Extension resource to fetch.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionContext.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionContext.php
MIT
public function __construct( Version $version ) { parent::__construct($version); // Path Solution $this->solution = [ ]; $this->uri = '/Sims'; }
Construct the SimList @param Version $version Version that contains the resource
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/SimList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/SimList.php
MIT
public function __construct( Version $version, $sid ) { parent::__construct($version); // Path Solution $this->solution = [ 'sid' => $sid, ]; $this->uri = '/Sims/' . \rawurlencode($sid) .''; }
Initialize the SimContext @param Version $version Version that contains the resource @param string $sid
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/SimContext.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/SimContext.php
MIT
public function __get(string $name) { if (\array_key_exists($name, $this->properties)) { return $this->properties[$name]; } if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown property: ' . $name); }
Magic getter to access properties @param string $name Property to access @return mixed The requested property @throws TwilioException For unknown properties
__get
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/SimInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/SimInstance.php
MIT
public function __construct( string $status = Values::NONE, string $iccid = Values::NONE, string $ratePlan = Values::NONE, string $eId = Values::NONE, string $simRegistrationCode = Values::NONE ) { $this->options['status'] = $status; $this->options['iccid'] = $iccid; $this->options['ratePlan'] = $ratePlan; $this->options['eId'] = $eId; $this->options['simRegistrationCode'] = $simRegistrationCode; }
@param string $status @param string $iccid @param string $ratePlan @param string $eId @param string $simRegistrationCode
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/SimOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/SimOptions.php
MIT
public function __construct( string $uniqueName = Values::NONE, string $callbackMethod = Values::NONE, string $callbackUrl = Values::NONE, string $friendlyName = Values::NONE, string $ratePlan = Values::NONE, string $status = Values::NONE, string $commandsCallbackMethod = Values::NONE, string $commandsCallbackUrl = Values::NONE, string $smsFallbackMethod = Values::NONE, string $smsFallbackUrl = Values::NONE, string $smsMethod = Values::NONE, string $smsUrl = Values::NONE, string $voiceFallbackMethod = Values::NONE, string $voiceFallbackUrl = Values::NONE, string $voiceMethod = Values::NONE, string $voiceUrl = Values::NONE ) { $this->options['uniqueName'] = $uniqueName; $this->options['callbackMethod'] = $callbackMethod; $this->options['callbackUrl'] = $callbackUrl; $this->options['friendlyName'] = $friendlyName; $this->options['ratePlan'] = $ratePlan; $this->options['status'] = $status; $this->options['commandsCallbackMethod'] = $commandsCallbackMethod; $this->options['commandsCallbackUrl'] = $commandsCallbackUrl; $this->options['smsFallbackMethod'] = $smsFallbackMethod; $this->options['smsFallbackUrl'] = $smsFallbackUrl; $this->options['smsMethod'] = $smsMethod; $this->options['smsUrl'] = $smsUrl; $this->options['voiceFallbackMethod'] = $voiceFallbackMethod; $this->options['voiceFallbackUrl'] = $voiceFallbackUrl; $this->options['voiceMethod'] = $voiceMethod; $this->options['voiceUrl'] = $voiceUrl; }
@param string $uniqueName @param string $callbackMethod @param string $callbackUrl @param string $friendlyName @param string $ratePlan @param string $status @param string $commandsCallbackMethod @param string $commandsCallbackUrl @param string $smsFallbackMethod @param string $smsFallbackUrl @param string $smsMethod @param string $smsUrl @param string $voiceFallbackMethod @param string $voiceFallbackUrl @param string $voiceMethod @param string $voiceUrl
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/SimOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/SimOptions.php
MIT
public function __get(string $name) { if (\array_key_exists($name, $this->properties)) { return $this->properties[$name]; } if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown property: ' . $name); }
Magic getter to access properties @param string $name Property to access @return mixed The requested property @throws TwilioException For unknown properties
__get
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/CommandInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/CommandInstance.php
MIT
public function __construct(Version $version, Response $response, array $solution) { parent::__construct($version, $response); // Path Solution $this->solution = $solution; }
@param Version $version Version that contains the resource @param Response $response Response from the API @param array $solution The context solution
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/CommandPage.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/CommandPage.php
MIT
public function __construct( string $uniqueName = Values::NONE, string $friendlyName = Values::NONE, bool $dataEnabled = Values::BOOL_NONE, int $dataLimit = Values::INT_NONE, string $dataMetering = Values::NONE, bool $messagingEnabled = Values::BOOL_NONE, bool $voiceEnabled = Values::BOOL_NONE, bool $commandsEnabled = Values::BOOL_NONE, bool $nationalRoamingEnabled = Values::BOOL_NONE, array $internationalRoaming = Values::ARRAY_NONE ) { $this->options['uniqueName'] = $uniqueName; $this->options['friendlyName'] = $friendlyName; $this->options['dataEnabled'] = $dataEnabled; $this->options['dataLimit'] = $dataLimit; $this->options['dataMetering'] = $dataMetering; $this->options['messagingEnabled'] = $messagingEnabled; $this->options['voiceEnabled'] = $voiceEnabled; $this->options['commandsEnabled'] = $commandsEnabled; $this->options['nationalRoamingEnabled'] = $nationalRoamingEnabled; $this->options['internationalRoaming'] = $internationalRoaming; }
@param string $uniqueName @param string $friendlyName @param bool $dataEnabled @param int $dataLimit @param string $dataMetering @param bool $messagingEnabled @param bool $voiceEnabled @param bool $commandsEnabled @param bool $nationalRoamingEnabled @param string[] $internationalRoaming
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/RatePlanOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/RatePlanOptions.php
MIT
public function __construct( string $uniqueName = Values::NONE, string $friendlyName = Values::NONE ) { $this->options['uniqueName'] = $uniqueName; $this->options['friendlyName'] = $friendlyName; }
@param string $uniqueName @param string $friendlyName
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/RatePlanOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/RatePlanOptions.php
MIT
public function __construct( Version $version, $sid ) { parent::__construct($version); // Path Solution $this->solution = [ 'sid' => $sid, ]; $this->uri = '/RatePlans/' . \rawurlencode($sid) .''; }
Initialize the RatePlanContext @param Version $version Version that contains the resource @param string $sid
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/RatePlanContext.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/RatePlanContext.php
MIT
public function __construct( Version $version, $sid ) { parent::__construct($version); // Path Solution $this->solution = [ 'sid' => $sid, ]; $this->uri = '/Commands/' . \rawurlencode($sid) .''; }
Initialize the CommandContext @param Version $version Version that contains the resource @param string $sid
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/CommandContext.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/CommandContext.php
MIT
public function __construct( Version $version ) { parent::__construct($version); // Path Solution $this->solution = [ ]; $this->uri = '/Commands'; }
Construct the CommandList @param Version $version Version that contains the resource
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/CommandList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/CommandList.php
MIT
public function __construct( Version $version ) { parent::__construct($version); // Path Solution $this->solution = [ ]; $this->uri = '/RatePlans'; }
Construct the RatePlanList @param Version $version Version that contains the resource
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/RatePlanList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/RatePlanList.php
MIT
public function __construct(Version $version, Response $response, array $solution) { parent::__construct($version, $response); // Path Solution $this->solution = $solution; }
@param Version $version Version that contains the resource @param Response $response Response from the API @param array $solution The context solution
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/SimPage.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/SimPage.php
MIT
public function __construct( string $device = Values::NONE, string $sim = Values::NONE, string $callbackMethod = Values::NONE, string $callbackUrl = Values::NONE, string $commandMode = Values::NONE, string $includeSid = Values::NONE ) { $this->options['device'] = $device; $this->options['sim'] = $sim; $this->options['callbackMethod'] = $callbackMethod; $this->options['callbackUrl'] = $callbackUrl; $this->options['commandMode'] = $commandMode; $this->options['includeSid'] = $includeSid; }
@param string $device @param string $sim @param string $callbackMethod @param string $callbackUrl @param string $commandMode @param string $includeSid
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/CommandOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/CommandOptions.php
MIT
public function __construct( string $device = Values::NONE, string $sim = Values::NONE, string $status = Values::NONE, string $direction = Values::NONE ) { $this->options['device'] = $device; $this->options['sim'] = $sim; $this->options['status'] = $status; $this->options['direction'] = $direction; }
@param string $device @param string $sim @param string $status @param string $direction
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/CommandOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/CommandOptions.php
MIT
public function __get(string $name) { if (\array_key_exists($name, $this->properties)) { return $this->properties[$name]; } if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown property: ' . $name); }
Magic getter to access properties @param string $name Property to access @return mixed The requested property @throws TwilioException For unknown properties
__get
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/RatePlanInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/RatePlanInstance.php
MIT
public function __construct(Version $version, Response $response, array $solution) { parent::__construct($version, $response); // Path Solution $this->solution = $solution; }
@param Version $version Version that contains the resource @param Response $response Response from the API @param array $solution The context solution
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/RatePlanPage.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/RatePlanPage.php
MIT
public function __construct( string $end = Values::NONE, string $start = Values::NONE ) { $this->options['end'] = $end; $this->options['start'] = $start; }
@param string $end @param string $start
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/Sim/UsageOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/Sim/UsageOptions.php
MIT
public function __get(string $name) { if (\array_key_exists($name, $this->properties)) { return $this->properties[$name]; } if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown property: ' . $name); }
Magic getter to access properties @param string $name Property to access @return mixed The requested property @throws TwilioException For unknown properties
__get
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/Sim/UsageInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/Sim/UsageInstance.php
MIT
public function __construct( Version $version, string $simSid ) { parent::__construct($version); // Path Solution $this->solution = [ 'simSid' => $simSid, ]; }
Construct the UsageList @param Version $version Version that contains the resource @param string $simSid
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/Sim/UsageList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/Sim/UsageList.php
MIT
public function __construct(Version $version, Response $response, array $solution) { parent::__construct($version, $response); // Path Solution $this->solution = $solution; }
@param Version $version Version that contains the resource @param Response $response Response from the API @param array $solution The context solution
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/Sim/UsagePage.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/Sim/UsagePage.php
MIT
public function __construct( Version $version, $simSid ) { parent::__construct($version); // Path Solution $this->solution = [ 'simSid' => $simSid, ]; $this->uri = '/Sims/' . \rawurlencode($simSid) .'/Usage'; }
Initialize the UsageContext @param Version $version Version that contains the resource @param string $simSid
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/Wireless/Sim/UsageContext.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/Wireless/Sim/UsageContext.php
MIT
public function __construct( Version $version ) { parent::__construct($version); // Path Solution $this->solution = [ ]; $this->uri = '/HostedNumberOrders'; }
Construct the HostedNumberOrderList @param Version $version Version that contains the resource
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderList.php
MIT
public function __construct( string $accountSid = Values::NONE, string $friendlyName = Values::NONE, string $uniqueName = Values::NONE, array $ccEmails = Values::ARRAY_NONE, string $smsUrl = Values::NONE, string $smsMethod = Values::NONE, string $smsFallbackUrl = Values::NONE, string $smsFallbackMethod = Values::NONE, string $statusCallbackUrl = Values::NONE, string $statusCallbackMethod = Values::NONE, string $smsApplicationSid = Values::NONE, string $addressSid = Values::NONE, string $email = Values::NONE, string $verificationType = Values::NONE, string $verificationDocumentSid = Values::NONE ) { $this->options['accountSid'] = $accountSid; $this->options['friendlyName'] = $friendlyName; $this->options['uniqueName'] = $uniqueName; $this->options['ccEmails'] = $ccEmails; $this->options['smsUrl'] = $smsUrl; $this->options['smsMethod'] = $smsMethod; $this->options['smsFallbackUrl'] = $smsFallbackUrl; $this->options['smsFallbackMethod'] = $smsFallbackMethod; $this->options['statusCallbackUrl'] = $statusCallbackUrl; $this->options['statusCallbackMethod'] = $statusCallbackMethod; $this->options['smsApplicationSid'] = $smsApplicationSid; $this->options['addressSid'] = $addressSid; $this->options['email'] = $email; $this->options['verificationType'] = $verificationType; $this->options['verificationDocumentSid'] = $verificationDocumentSid; }
@param string $accountSid This defaults to the AccountSid of the authorization the user is using. This can be provided to specify a subaccount to add the HostedNumberOrder to. @param string $friendlyName A 64 character string that is a human readable text that describes this resource. @param string $uniqueName Optional. Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. @param string[] $ccEmails Optional. A list of emails that the LOA document for this HostedNumberOrder will be carbon copied to. @param string $smsUrl The URL that Twilio should request when somebody sends an SMS to the phone number. This will be copied onto the IncomingPhoneNumber resource. @param string $smsMethod The HTTP method that should be used to request the SmsUrl. Must be either `GET` or `POST`. This will be copied onto the IncomingPhoneNumber resource. @param string $smsFallbackUrl A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by SmsUrl. This will be copied onto the IncomingPhoneNumber resource. @param string $smsFallbackMethod The HTTP method that should be used to request the SmsFallbackUrl. Must be either `GET` or `POST`. This will be copied onto the IncomingPhoneNumber resource. @param string $statusCallbackUrl Optional. The Status Callback URL attached to the IncomingPhoneNumber resource. @param string $statusCallbackMethod Optional. The Status Callback Method attached to the IncomingPhoneNumber resource. @param string $smsApplicationSid Optional. The 34 character sid of the application Twilio should use to handle SMS messages sent to this number. If a `SmsApplicationSid` is present, Twilio will ignore all of the SMS urls above and use those set on the application. @param string $addressSid Optional. A 34 character string that uniquely identifies the Address resource that represents the address of the owner of this phone number. @param string $email Optional. Email of the owner of this phone number that is being hosted. @param string $verificationType @param string $verificationDocumentSid Optional. The unique sid identifier of the Identity Document that represents the document for verifying ownership of the number to be hosted. Required when VerificationType is phone-bill.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderOptions.php
MIT
public function __construct( string $status = Values::NONE, string $phoneNumber = Values::NONE, string $incomingPhoneNumberSid = Values::NONE, string $friendlyName = Values::NONE, string $uniqueName = Values::NONE ) { $this->options['status'] = $status; $this->options['phoneNumber'] = $phoneNumber; $this->options['incomingPhoneNumberSid'] = $incomingPhoneNumberSid; $this->options['friendlyName'] = $friendlyName; $this->options['uniqueName'] = $uniqueName; }
@param string $status The Status of this HostedNumberOrder. One of `received`, `pending-verification`, `verified`, `pending-loa`, `carrier-processing`, `testing`, `completed`, `failed`, or `action-required`. @param string $phoneNumber An E164 formatted phone number hosted by this HostedNumberOrder. @param string $incomingPhoneNumberSid A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder. @param string $friendlyName A human readable description of this resource, up to 64 characters. @param string $uniqueName Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderOptions.php
MIT
public function __construct( string $friendlyName = Values::NONE, string $uniqueName = Values::NONE, string $email = Values::NONE, array $ccEmails = Values::ARRAY_NONE, string $status = Values::NONE, string $verificationCode = Values::NONE, string $verificationType = Values::NONE, string $verificationDocumentSid = Values::NONE, string $extension = Values::NONE, int $callDelay = Values::INT_NONE ) { $this->options['friendlyName'] = $friendlyName; $this->options['uniqueName'] = $uniqueName; $this->options['email'] = $email; $this->options['ccEmails'] = $ccEmails; $this->options['status'] = $status; $this->options['verificationCode'] = $verificationCode; $this->options['verificationType'] = $verificationType; $this->options['verificationDocumentSid'] = $verificationDocumentSid; $this->options['extension'] = $extension; $this->options['callDelay'] = $callDelay; }
@param string $friendlyName A 64 character string that is a human readable text that describes this resource. @param string $uniqueName Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. @param string $email Email of the owner of this phone number that is being hosted. @param string[] $ccEmails Optional. A list of emails that LOA document for this HostedNumberOrder will be carbon copied to. @param string $status @param string $verificationCode A verification code that is given to the user via a phone call to the phone number that is being hosted. @param string $verificationType @param string $verificationDocumentSid Optional. The unique sid identifier of the Identity Document that represents the document for verifying ownership of the number to be hosted. Required when VerificationType is phone-bill. @param string $extension Digits to dial after connecting the verification call. @param int $callDelay The number of seconds, between 0 and 60, to delay before initiating the verification call. Defaults to 0.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderOptions.php
MIT
public function __construct(Version $version, Response $response, array $solution) { parent::__construct($version, $response); // Path Solution $this->solution = $solution; }
@param Version $version Version that contains the resource @param Response $response Response from the API @param array $solution The context solution
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentPage.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentPage.php
MIT
public function __construct( array $ccEmails = Values::ARRAY_NONE ) { $this->options['ccEmails'] = $ccEmails; }
@param string[] $ccEmails Email recipients who will be informed when an Authorization Document has been sent and signed.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentOptions.php
MIT
public function __construct( string $email = Values::NONE, string $status = Values::NONE ) { $this->options['email'] = $email; $this->options['status'] = $status; }
@param string $email Email that this AuthorizationDocument will be sent to for signing. @param string $status Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource#status-values) for more information on each of these statuses.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentOptions.php
MIT
public function __construct( array $hostedNumberOrderSids = Values::ARRAY_NONE, string $addressSid = Values::NONE, string $email = Values::NONE, array $ccEmails = Values::ARRAY_NONE, string $status = Values::NONE, string $contactTitle = Values::NONE, string $contactPhoneNumber = Values::NONE ) { $this->options['hostedNumberOrderSids'] = $hostedNumberOrderSids; $this->options['addressSid'] = $addressSid; $this->options['email'] = $email; $this->options['ccEmails'] = $ccEmails; $this->options['status'] = $status; $this->options['contactTitle'] = $contactTitle; $this->options['contactPhoneNumber'] = $contactPhoneNumber; }
@param string[] $hostedNumberOrderSids A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform. @param string $addressSid A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument. @param string $email Email that this AuthorizationDocument will be sent to for signing. @param string[] $ccEmails Email recipients who will be informed when an Authorization Document has been sent and signed @param string $status @param string $contactTitle The title of the person authorized to sign the Authorization Document for this phone number. @param string $contactPhoneNumber The contact phone number of the person authorized to sign the Authorization Document.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentOptions.php
MIT
public function __construct( Version $version ) { parent::__construct($version); // Path Solution $this->solution = [ ]; $this->uri = '/AuthorizationDocuments'; }
Construct the AuthorizationDocumentList @param Version $version Version that contains the resource
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentList.php
MIT
public function __construct( Version $version, $sid ) { parent::__construct($version); // Path Solution $this->solution = [ 'sid' => $sid, ]; $this->uri = '/HostedNumberOrders/' . \rawurlencode($sid) .''; }
Initialize the HostedNumberOrderContext @param Version $version Version that contains the resource @param string $sid A 34 character string that uniquely identifies this HostedNumberOrder.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderContext.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderContext.php
MIT
public function __construct(Version $version, Response $response, array $solution) { parent::__construct($version, $response); // Path Solution $this->solution = $solution; }
@param Version $version Version that contains the resource @param Response $response Response from the API @param array $solution The context solution
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderPage.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderPage.php
MIT
public function __construct( Version $version, $sid ) { parent::__construct($version); // Path Solution $this->solution = [ 'sid' => $sid, ]; $this->uri = '/AuthorizationDocuments/' . \rawurlencode($sid) .''; }
Initialize the AuthorizationDocumentContext @param Version $version Version that contains the resource @param string $sid A 34 character string that uniquely identifies this AuthorizationDocument.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentContext.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentContext.php
MIT
public function __get(string $name) { if (\array_key_exists($name, $this->properties)) { return $this->properties[$name]; } if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown property: ' . $name); }
Magic getter to access properties @param string $name Property to access @return mixed The requested property @throws TwilioException For unknown properties
__get
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentInstance.php
MIT
public function __get(string $name) { if (\array_key_exists($name, $this->properties)) { return $this->properties[$name]; } if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown property: ' . $name); }
Magic getter to access properties @param string $name Property to access @return mixed The requested property @throws TwilioException For unknown properties
__get
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderInstance.php
MIT
public function __construct( Version $version, string $signingDocumentSid ) { parent::__construct($version); // Path Solution $this->solution = [ 'signingDocumentSid' => $signingDocumentSid, ]; $this->uri = '/AuthorizationDocuments/' . \rawurlencode($signingDocumentSid) .'/DependentHostedNumberOrders'; }
Construct the DependentHostedNumberOrderList @param Version $version Version that contains the resource @param string $signingDocumentSid A 34 character string that uniquely identifies the LOA document associated with this HostedNumberOrder.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderList.php
MIT
public function __construct( string $status = Values::NONE, string $phoneNumber = Values::NONE, string $incomingPhoneNumberSid = Values::NONE, string $friendlyName = Values::NONE, string $uniqueName = Values::NONE ) { $this->options['status'] = $status; $this->options['phoneNumber'] = $phoneNumber; $this->options['incomingPhoneNumberSid'] = $incomingPhoneNumberSid; $this->options['friendlyName'] = $friendlyName; $this->options['uniqueName'] = $uniqueName; }
@param string $status Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource#status-values) for more information on each of these statuses. @param string $phoneNumber An E164 formatted phone number hosted by this HostedNumberOrder. @param string $incomingPhoneNumberSid A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder. @param string $friendlyName A human readable description of this resource, up to 64 characters. @param string $uniqueName Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID.
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderOptions.php
MIT
public function __get(string $name) { if (\array_key_exists($name, $this->properties)) { return $this->properties[$name]; } if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown property: ' . $name); }
Magic getter to access properties @param string $name Property to access @return mixed The requested property @throws TwilioException For unknown properties
__get
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderInstance.php
MIT
public function __construct(Version $version, Response $response, array $solution) { parent::__construct($version, $response); // Path Solution $this->solution = $solution; }
@param Version $version Version that contains the resource @param Response $response Response from the API @param array $solution The context solution
__construct
php
twilio/twilio-php
src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderPage.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderPage.php
MIT
public function __construct(Domain $domain) { parent::__construct($domain); $this->version = 'v1'; }
Construct the V1 version of Accounts @param Domain $domain Domain that contains the version
__construct
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1.php
MIT
public function __get(string $name) { $method = 'get' . \ucfirst($name); if (\method_exists($this, $method)) { return $this->$method(); } throw new TwilioException('Unknown resource ' . $name); }
Magic getter to lazy load root resources @param string $name Resource to return @return \Twilio\ListResource The requested resource @throws TwilioException For unknown resource
__get
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1.php
MIT
public function __construct(Version $version, array $payload) { parent::__construct($version); // Marshaled Properties $this->properties = [ 'accountSid' => Values::array_get($payload, 'account_sid'), 'authToken' => Values::array_get($payload, 'auth_token'), 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')), 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')), 'url' => Values::array_get($payload, 'url'), ]; $this->solution = []; }
Initialize the AuthTokenPromotionInstance @param Version $version Version that contains the resource @param mixed[] $payload The response payload
__construct
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1/AuthTokenPromotionInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1/AuthTokenPromotionInstance.php
MIT
public function __get(string $name) { if (\array_key_exists($name, $this->properties)) { return $this->properties[$name]; } if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown property: ' . $name); }
Magic getter to access properties @param string $name Property to access @return mixed The requested property @throws TwilioException For unknown properties
__get
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1/AuthTokenPromotionInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1/AuthTokenPromotionInstance.php
MIT
public function __construct( Version $version ) { parent::__construct($version); // Path Solution $this->solution = [ ]; $this->uri = '/AuthTokens/Secondary'; }
Initialize the SecondaryAuthTokenContext @param Version $version Version that contains the resource
__construct
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1/SecondaryAuthTokenContext.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1/SecondaryAuthTokenContext.php
MIT
public function __construct(Version $version, Response $response, array $solution) { parent::__construct($version, $response); // Path Solution $this->solution = $solution; }
@param Version $version Version that contains the resource @param Response $response Response from the API @param array $solution The context solution
__construct
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1/SafelistPage.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1/SafelistPage.php
MIT
public function __construct(Version $version, array $payload) { parent::__construct($version); // Marshaled Properties $this->properties = [ 'sid' => Values::array_get($payload, 'sid'), 'phoneNumber' => Values::array_get($payload, 'phone_number'), ]; $this->solution = []; }
Initialize the SafelistInstance @param Version $version Version that contains the resource @param mixed[] $payload The response payload
__construct
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1/SafelistInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1/SafelistInstance.php
MIT
public function __get(string $name) { if (\array_key_exists($name, $this->properties)) { return $this->properties[$name]; } if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown property: ' . $name); }
Magic getter to access properties @param string $name Property to access @return mixed The requested property @throws TwilioException For unknown properties
__get
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1/SafelistInstance.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1/SafelistInstance.php
MIT
public function __construct( Version $version ) { parent::__construct($version); // Path Solution $this->solution = [ ]; }
Construct the SecondaryAuthTokenList @param Version $version Version that contains the resource
__construct
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1/SecondaryAuthTokenList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1/SecondaryAuthTokenList.php
MIT
public function __construct(Version $version, Response $response, array $solution) { parent::__construct($version, $response); // Path Solution $this->solution = $solution; }
@param Version $version Version that contains the resource @param Response $response Response from the API @param array $solution The context solution
__construct
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1/CredentialPage.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1/CredentialPage.php
MIT
public function __construct( Version $version ) { parent::__construct($version); // Path Solution $this->solution = [ ]; $this->uri = '/Contacts/Bulk'; }
Construct the BulkContactsList @param Version $version Version that contains the resource
__construct
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1/BulkContactsList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1/BulkContactsList.php
MIT
public function __construct( Version $version ) { parent::__construct($version); // Path Solution $this->solution = [ ]; }
Construct the AuthTokenPromotionList @param Version $version Version that contains the resource
__construct
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1/AuthTokenPromotionList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1/AuthTokenPromotionList.php
MIT
public function __construct( Version $version ) { parent::__construct($version); // Path Solution $this->solution = [ ]; $this->uri = '/Consents/Bulk'; }
Construct the BulkConsentsList @param Version $version Version that contains the resource
__construct
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1/BulkConsentsList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1/BulkConsentsList.php
MIT
public function __construct( string $phoneNumber = Values::NONE ) { $this->options['phoneNumber'] = $phoneNumber; }
@param string $phoneNumber The phone number or phone number 1k prefix to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
__construct
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1/SafelistOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1/SafelistOptions.php
MIT
public function __construct( string $phoneNumber = Values::NONE ) { $this->options['phoneNumber'] = $phoneNumber; }
@param string $phoneNumber The phone number or phone number 1k prefix to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
__construct
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1/SafelistOptions.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1/SafelistOptions.php
MIT
public function __construct(Version $version, Response $response, array $solution) { parent::__construct($version, $response); // Path Solution $this->solution = $solution; }
@param Version $version Version that contains the resource @param Response $response Response from the API @param array $solution The context solution
__construct
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1/AuthTokenPromotionPage.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1/AuthTokenPromotionPage.php
MIT
public function __construct( Version $version ) { parent::__construct($version); // Path Solution $this->solution = [ ]; }
Construct the CredentialList @param Version $version Version that contains the resource
__construct
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1/CredentialList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1/CredentialList.php
MIT
public function __get(string $name) { if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown subresource ' . $name); }
Magic getter to lazy load subresources @param string $name Subresource to return @return \Twilio\ListResource The requested subresource @throws TwilioException For unknown subresources
__get
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1/CredentialList.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1/CredentialList.php
MIT
public function __construct( Version $version ) { parent::__construct($version); // Path Solution $this->solution = [ ]; $this->uri = '/AuthTokens/Promote'; }
Initialize the AuthTokenPromotionContext @param Version $version Version that contains the resource
__construct
php
twilio/twilio-php
src/Twilio/Rest/Accounts/V1/AuthTokenPromotionContext.php
https://github.com/twilio/twilio-php/blob/master/src/Twilio/Rest/Accounts/V1/AuthTokenPromotionContext.php
MIT