Twilio account instance

package Library
subpackage Twilio\Api\Action\Account
author Aleksey Korzun

 Methods

Class constructor

__construct(array $parameters) 
Inherited
inherited_from \Twilio\Api\Resource::__construct()
inherited_from \Twilio\Api\Resource\Instance::__construct()

Parameters

$parameters

array

Get the value of a property on this resource.

__get(string $name) : mixed
Inherited

To help with lazy HTTP requests, we don't actually retrieve an object from the API unless you really need it. Hence, this function may make API requests if the property you're requesting isn't available on the resource.

inherited_from \Twilio\Api\Resource\Instance::__get()

Parameters

$name

string

property name

Returns

mixed

Retrieve instance of a client

client() : \Twilio\Api\Client
InheritedStatic
inherited_from \Twilio\Api\Resource::client()
inherited_from \Twilio\Api\Resource\Instance::client()

Returns

\Twilio\Api\Client

Retrieve sub-resources

getActions(string $name) : string[]
Inherited
inherited_from \Twilio\Api\Resource::getActions()
inherited_from \Twilio\Api\Resource\Instance::getActions()

Parameters

$name

string

Returns

string[]

Set a new client

setClient(object $client) 
InheritedStatic
inherited_from \Twilio\Api\Resource::setClient()
inherited_from \Twilio\Api\Resource\Instance::setClient()

Parameters

$client

object

Set new URI

setUri(string $uri, bool | string $action) 
Inherited
inherited_from \Twilio\Api\Resource::setUri()
inherited_from \Twilio\Api\Resource\Instance::setUri()

Parameters

$uri

string

new address

$action

boolstring

optional action end point to append

Update instance parameters

update(mixed $parameters, mixed $value) 
Inherited
inherited_from \Twilio\Api\Resource\Instance::update()

Parameters

$parameters

mixed

array of updates, or a property name

$value

mixed

a value with which to update the resource

Add all properties from an associative array (the JSON response body) as properties on this instance resource

updateAttributes(mixed $parameters) 
Inherited
inherited_from \Twilio\Api\Resource\Instance::updateAttributes()

Parameters

$parameters

mixed

Retrieve currently set URI

uri() : string
Inherited
inherited_from \Twilio\Api\Resource::uri()
inherited_from \Twilio\Api\Resource\Instance::uri()

Returns

string

Initializer

init() 

Initialize instance

initialize() 
Inherited
inherited_from \Twilio\Api\Resource\Instance::initialize()

Setup sub-resources

setupActions() 
Inherited
inherited_from \Twilio\Api\Resource::setupActions()
inherited_from \Twilio\Api\Resource\Instance::setupActions()

 Properties

 

$actions : string[]
Inherited
inherited_from \Twilio\Api\Resource::$actions
inherited_from \Twilio\Api\Resource\Instance::$actions
 

$client : \Twilio\Api\Client
Inherited
inherited_from \Twilio\Api\Resource::$client
inherited_from \Twilio\Api\Resource\Instance::$client
 

$isInitialized : bool
Inherited
inherited_from \Twilio\Api\Resource\Instance::$isInitialized
 

$resource : mixed
Inherited
inherited_from \Twilio\Api\Resource::$resource
inherited_from \Twilio\Api\Resource\Instance::$resource
 

$uri : string
Inherited
inherited_from \Twilio\Api\Resource::$uri
inherited_from \Twilio\Api\Resource\Instance::$uri