Twilio short code resource

package Library
subpackage Twilio\Api\Action
author Aleksey Korzun

 Methods

Class constructor

__construct() 
Inherited
inherited_from \Twilio\Api\Resource\Listing::__construct()

Retrieve instance of a client

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

Returns

\Twilio\Api\Client

Deletes a resource from this list.

delete(string $identifier, array $parameters) 
Inherited
inherited_from \Twilio\Api\Resource\Listing::delete()

Parameters

$identifier

string

resource identifier

$parameters

array

Gets a resource from this list.

get(string $identifier) : \Twilio\Api\Resource\Instance
Inherited
inherited_from \Twilio\Api\Resource\Listing::get()

Parameters

$identifier

string

resource identifier

Returns

Retrieve sub-resources

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

Parameters

$name

string

Returns

string[]

Implementing placeholder method for IteratorAggregate

getIterator() : \Twilio\Api\Resource\Listing\Paginator
Inherited
see \IteratorAggregate
inherited_from \Twilio\Api\Resource\Listing::getIterator()

Returns

Construct an InstanceResource with the specified params.

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

Parameters

$parameters

array

usually a JSON HTTP response from the API

Returns

Returns a page of InstanceResources from this list.

getPage(int $page, int $size, array $filters, string $pagingUri) : \Twilio\Api\Resource\Listing\Page
Inherited
inherited_from \Twilio\Api\Resource\Listing::getPage()

Parameters

$page

int

start page

$size

int

number of items per page

$filters

string[]

optional filters

$pagingUri

string

if provided, the $page and $size parameters will be ignored and this URI will be requested directly.

Returns

Returns an iterable list of InstanceResources

paginator(int $page, int $size, array $filters) : \Twilio\Api\Resource\Listing\Paginator
Inherited
inherited_from \Twilio\Api\Resource\Listing::paginator()

Parameters

$page

int

start page

$size

int

number of items per page

$filters

string[]

optional filters The filter array can accept full datetimes when StartTime or DateCreated are used. Inequalities should be within the key portion of the array and multiple filter parameters can be combined for more specific searches. eg. array('DateCreated>' => '2011-07-05 08:00:00', 'DateCreated<' => '2011-08-01') or array('StartTime<' => '2011-07-05 08:00:00')

Returns

Set a new client

setClient(object $client) 
InheritedStatic
inherited_from \Twilio\Api\Resource::setClient()
inherited_from \Twilio\Api\Resource\Listing::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\Listing::setUri()

Parameters

$uri

string

new address

$action

boolstring

optional action end point to append

Retrieve currently set URI

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

Returns

string

Create a resource on the list and then return its representation as an InstanceResource.

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

Parameters

$parameters

array

The parameters with which to create the resource

Returns

Setup sub-resources

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

 Properties

 

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

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

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

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