NAME
Twilio::Rest::Api::V2010::Account::Token - The Token resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $token = $client->tokens->create(\%options);
DESCRIPTION
Credentials for ICE servers
This file holds TokenList and TokenInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
TokenList
Returned by $client->tokens. See also Twilio::ListResource.
create
my $token = $client->tokens->create(\%options);
Create a new token for ICE servers. Returns a TokenInstance.
The options are:
ttl-
The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours).
TokenInstance
See also Twilio::InstanceResource.
Its fields are:
- account_sid
-
The SID of the Account that created the Token resource.
- date_created
-
The date and time in GMT that the resource was created specified in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
The date and time in GMT that the resource was last updated specified in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- ice_servers
-
An array representing the ephemeral credentials and the STUN and TURN server URIs.
- password
-
The temporary password that the username will use when authenticating with Twilio.
- ttl
-
The duration in seconds for which the username and password are valid.
- username
-
The temporary username that uniquely identifies a Token.
CONSTRUCTORS
new
Objects here come from the methods above, so there is no need to call new directly.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.