class Twilio::TokensApi

Defined in:

twilio/api/tokens_api.cr

Constant Summary

CREATE_TOKEN_MAX_LENGTH_FOR_ACCOUNT_SID = 34
CREATE_TOKEN_MIN_LENGTH_FOR_ACCOUNT_SID = 34
CREATE_TOKEN_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/

Constructors

Instance Method Summary

Constructor Detail

def self.new(api_client : Twilio::ApiClient = ApiClient.default) #

[View source]

Instance Method Detail

def account_sid : String #

[View source]
def account_sid=(account_sid : String) #

[View source]
def api_client : ApiClient #

[View source]
def api_client=(api_client : ApiClient) #

[View source]
def build_api_request_for_create_token(*, account_sid : String | Nil = @account_sid, ttl : Int32 | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def client_side_validation?(*args, **options) #

[View source]
def client_side_validation?(*args, **options, &) #

[View source]
def create_token(*, account_sid : String | Nil = @account_sid, ttl : Int32 | Nil = nil) : Twilio::Token #

Create a new token for ICE servers @required @param account_sid [String?] The SID of the Account that will create the resource. @optional @param ttl [Int32?] The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours). @return [Twilio::Token]


[View source]
def create_token(*, account_sid : String | Nil = @account_sid, ttl : Int32 | Nil = nil, &block : Crest::Response -> ) : Nil #

Create a new token for ICE servers @required @param account_sid [String?] The SID of the Account that will create the resource. @optional @param ttl [Int32?] The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours). @return nil


[View source]
def create_token_with_http_info(*, account_sid : String | Nil = @account_sid, ttl : Int32 | Nil = nil) : Tuple(Twilio::Token, Int32, Hash(String, Array(String) | String)) #

Create a new token for ICE servers @required @param account_sid [String?] The SID of the Account that will create the resource. @optional @param ttl [Int32?] The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours). @return [Tuple(Twilio::Token, Integer, Hash)] Twilio::Token, response status code and response headers


[View source]
def debugging?(*args, **options) #

[View source]
def debugging?(*args, **options, &) #

[View source]