twilio.jwt.client package

Module contents

class twilio.jwt.client.ClientCapabilityToken(account_sid, auth_token, nbf=<object object>, ttl=3600, valid_until=None, **kwargs)[source]

Bases: twilio.jwt.Jwt

A token to control permissions with Twilio Client

ALGORITHM = 'HS256'
allow_client_incoming(client_name)[source]

Allow the user of this token to accept incoming connections.

Parameters:client_name (str) – Client name to accept calls from
allow_client_outgoing(application_sid, **kwargs)[source]

Allow the user of this token to make outgoing connections. Keyword arguments are passed to the application.

Parameters:application_sid (str) – Application to contact
allow_event_stream(**kwargs)[source]

Allow the user of this token to access their event stream.

class twilio.jwt.client.ScopeURI(service, privilege, params=None)[source]

Bases: object

A single capability granted to Twilio Client and scoped to a service

add_param(key, value)[source]
to_payload()[source]