Twilio. Tokens
(twilio v0.2.0)
Copy Markdown
API calls: create.
Summary
Functions
Create a new token for ICE servers
Like create/2, but returns the result or raises Infusion.Runtime.Error.
Functions
@spec create(map() | keyword(), keyword()) :: {:ok, Twilio.Schemas.Token.t()} | {:error, Infusion.Runtime.Error.t()}
Create a new token for ICE servers
POST /2010-04-01/Accounts/{AccountSid}/Tokens.json
{AccountSid} in the path is the :account_sid setting; pass account_sid: "..." as an option to use another.
Parameters
ttl- The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours).
@spec create!(map() | keyword(), keyword()) :: Twilio.Schemas.Token.t()
Like create/2, but returns the result or raises Infusion.Runtime.Error.