Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageBody ¶
type MessageBody struct {
Messages MessageBodyMessages `json:"messages"`
}
MessageBody is to structure the body data
type MessageBodyAuthentication ¶
type MessageBodyAuthentication struct {
Producttoken string `json:"producttoken"`
}
type MessageBodyBody ¶
type MessageBodyMessages ¶
type MessageBodyMessages struct { Authentication MessageBodyAuthentication `json:"authentication"` Msg []MessageBodyMsg `json:"msg"` }
type MessageBodyMsg ¶
type MessageBodyMsg struct { AllowedChannels []string `json:"allowedChannels"` From string `json:"from"` To []MessageBodyTo `json:"to"` Body MessageBodyBody `json:"body"` }
type MessageBodyTo ¶
type MessageBodyTo struct {
Number string `json:"number"`
}
type MessageReturn ¶
type MessageReturn struct { Details string `json:"details"` ErrorCode int `json:"errorCode"` Messages []struct { To string `json:"to"` Status string `json:"status"` Reference interface{} `json:"reference"` Parts int `json:"parts"` MessageDetails interface{} `json:"messageDetails"` MessageErrorCode int `json:"messageErrorCode"` } `json:"messages"` }
MessageReturn is to decode the json data
func Message ¶
func Message(body MessageBody) (MessageReturn, error)
Message is to send a new message via the business messaging api
Click to show internal directories.
Click to hide internal directories.