Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKey ¶
APIKey represents a Twilio API Key which can be used to authenticate against the Twilio APIs
func (APIKey) AccountSid ¶
type Account ¶
Account represents Twilio Account Credentials which can be used to authenticate against the Twilio APIs
func (Account) AccountSid ¶
type Credentials ¶
Credentials represents the field necessary to authenticate against the Twilio APIs
func New ¶
func New(creds TwilioCredentials) (*Credentials, error)
New creates a new instance of credentials using the supplied twilio credentials. If the credentials are invalid then an error will be returned
func NewWithNoValidation ¶ added in v0.24.0
func NewWithNoValidation(creds TwilioCredentials) *Credentials
NewWithNoValidation creates a new instance of credentials using the supplied twilio credentials. This skips validation as some tools may initialise the client before credentials are supplied
type TwilioCredentials ¶
type TwilioCredentials interface { Validate() error AccountSid() string // contains filtered or unexported methods }
TwilioCredentials respresents the structure of twilio credentials