new AuthorizationDocumentList(version)
Initialize the AuthorizationDocumentList
PLEASE NOTE that this class contains preview products that are subject to
change. Use them with caution. If you currently do not have developer preview
access, please contact help@twilio.com.
Parameters:
Name | Type | Description |
---|---|---|
version |
Twilio.Preview.HostedNumbers | Version of the resource |
Methods
create(opts, callbackopt) → {Promise}
create a AuthorizationDocumentInstance
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object | Options for request
Properties
|
|||||||||||||||||||||||||||||
callback |
function |
<optional> |
Callback to handle processed record |
Returns:
Resolves to processed AuthorizationDocumentInstance
- Type
- Promise
each(optsopt, callbackopt)
Streams AuthorizationDocumentInstance records from the API.
This operation lazily loads records as efficiently as possible until the limit
is reached.
The results are passed into the callback function, so this operation is memory
efficient.
If a function is passed as the first argument, it will be used as the callback
function.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object |
<optional> |
Options for request
Properties
|
||||||||||||||||||||||||||||
callback |
function |
<optional> |
Function to process each record |
get(sid) → {Twilio.Preview.HostedNumbers.AuthorizationDocumentContext}
Constructs a authorization_document
Parameters:
Name | Type | Description |
---|---|---|
sid |
string | AuthorizationDocument sid. |
Returns:
getPage(targetUrlopt, callbackopt) → {Promise}
Retrieve a single target page of AuthorizationDocumentInstance records from the
API.
The request is executed immediately.
If a function is passed as the first argument, it will be used as the callback
function.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
targetUrl |
string |
<optional> |
API-generated URL for the requested results page |
callback |
function |
<optional> |
Callback to handle list of records |
Returns:
Resolves to a list of records
- Type
- Promise
list(optsopt, callbackopt) → {Promise}
Lists AuthorizationDocumentInstance records from the API as a list.
If a function is passed as the first argument, it will be used as the callback
function.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object |
<optional> |
Options for request
Properties
|
||||||||||||||||||||
callback |
function |
<optional> |
Callback to handle list of records |
Returns:
Resolves to a list of records
- Type
- Promise
page(optsopt, callbackopt) → {Promise}
Retrieve a single page of AuthorizationDocumentInstance records from the API.
The request is executed immediately.
If a function is passed as the first argument, it will be used as the callback
function.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object |
<optional> |
Options for request
Properties
|
||||||||||||||||||||||||
callback |
function |
<optional> |
Callback to handle list of records |
Returns:
Resolves to a list of records
- Type
- Promise
toJSON()
Provide a user-friendly representation
Returns:
Object