Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKey ¶
type APIKey struct { Account string `validate:"required,startswith=AC"` Sid string `validate:"required,startswith=SK"` Value string `validate:"required"` }
APIKey represents a Twilio API Key which can be used to authenticate against the Twilio APIs
func (APIKey) AccountSid ¶
type Account ¶
type Account struct { Sid string `validate:"required,startswith=AC"` AuthToken string `validate:"required"` }
Account represents Twilio Account Credentials which can be used to authenticate against the Twilio APIs
func (Account) AccountSid ¶
type Credentials ¶
Credentials respresent 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
type TwilioCredentials ¶
type TwilioCredentials interface { Validate() error AccountSid() string // contains filtered or unexported methods }
TwilioCredentials respresents the structure of twilio credentials
Click to show internal directories.
Click to hide internal directories.