Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type ErrorResponse struct { Code int `json:"code"` Message string `json:"message"` MoreInfo string `json:"more_info"` Status int `json:"status"` }
ErrorResponse is the default error response for twilio API's
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
Implements Golang's error interface.
func (*ErrorResponse) ErrorCode ¶
func (e *ErrorResponse) ErrorCode() int
type InternalAuth ¶
InternalAuth is the result returned when the correct AccountSid & AuthToken are provided
func NewDefaultAuth ¶
func NewDefaultAuth(username, password string) InternalAuth
NewDefaultAuth Creates a new default Auth object -- An Internal function.
Click to show internal directories.
Click to hide internal directories.