Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Params ¶
type Params struct { Originator string Reference string Type string Template string DataCoding string ReportURL string Voice string Language string Timeout int TokenLength int Subject string }
Params handles optional verification parameters.
type Verify ¶
type Verify struct { ID string HRef string Reference string Status string Messages map[string]string CreatedDatetime *time.Time ValidUntilDatetime *time.Time Recipient string }
Verify object represents MessageBird server response.
func Read ¶
func Read(c messagebird.Client, id string) (*Verify, error)
Read retrieves an existing Verify object by its ID.
func VerifyToken ¶
func VerifyToken(c messagebird.Client, id, token string) (*Verify, error)
VerifyToken performs token value check against MessageBird API.
func (*Verify) UnmarshalJSON ¶
UnmarshalJSON The type of the Verify.Recipient object changed from int to string but the api still returns a recipent numeric value whne sms type is used. This was the best way to ensure backward compatibility with the previous versions.
type VerifyMessage ¶
func ReadVerifyEmailMessage ¶
func ReadVerifyEmailMessage(c messagebird.Client, id string) (*VerifyMessage, error)
Click to show internal directories.
Click to hide internal directories.