Documentation ¶
Index ¶
Constants ¶
View Source
const RFC2822 = "Mon, 2 Jan 2006 15:04:05 -0700"
RFC2822 is the time format used by Twilio's unified API
Variables ¶
This section is empty.
Functions ¶
func Interface ¶
func Interface(v interface{}) *interface{}
Interface returns a pointer to the interface value passed in.
func StructToURLValues ¶
func ValidateInput ¶
func ValidateInput(input interface{}) error
ValidateInput validates an input struct matches the schema defined on the struct
Types ¶
type RFC2822Time ¶
RFC2822Time allows RFC2822 returned by the Twilio APIs to marshalled/ unmarshalled
func (*RFC2822Time) MarshalJSON ¶
func (value *RFC2822Time) MarshalJSON() ([]byte, error)
func (*RFC2822Time) UnmarshalJSON ¶
func (value *RFC2822Time) UnmarshalJSON(b []byte) error
type TwilioError ¶
type TwilioError struct { Code *int `json:"code,omitempty"` Details *map[string]interface{} `json:"details,omitempty"` Message string `json:"message"` MoreInfo *string `json:"more_info,omitempty"` Status int `json:"status"` }
TwilioError represents the error object returned by the Twilio API when an error occurs
func (TwilioError) Error ¶
func (twilioError TwilioError) Error() string
Error returns the error message
func (TwilioError) IsNotFoundError ¶
func (twilioError TwilioError) IsNotFoundError() bool
IsNotFoundError check if the error is a not found error
Click to show internal directories.
Click to hide internal directories.