Documentation ¶
Index ¶
- func CancelMessage(messageId string) (bool, error)
- func DeleteOriginator(originator string) (bool, error)
- func DeleteTemplate(id int32) (bool, error)
- type Balance
- type BaseOriginator
- type BaseTemplate
- type Client
- type Error
- type JSONMarshal
- type JSONUnmarshal
- type MessageBody
- type MessageDetails
- type MessageId
- type Originator
- type Routing
- type Template
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelMessage ¶
func DeleteOriginator ¶
func DeleteTemplate ¶
Types ¶
type Balance ¶
func GetBalance ¶
type BaseOriginator ¶
type BaseTemplate ¶
type Client ¶
type Client struct { *http.Client JSONEncoder JSONMarshal JSONDecoder JSONUnmarshal BaseUrl string UserName string ApiKey string // contains filtered or unexported fields }
func (*Client) Authorization ¶
type JSONMarshal ¶
type JSONUnmarshal ¶
type MessageBody ¶
type MessageDetails ¶
type MessageDetails struct { MessageId string `json:"message_id"` PartId string `json:"part_id"` State string `json:"state"` Sender string `json:"sender"` Network string `json:"network"` Dcs string `json:"dcs"` ErrorDescription string `json:"error_description"` TimeChangeState string `json:"time_change_state"` Cost float32 `json:"cost"` ErrorId int32 `json:"error_id"` Ported bool `json:"ported"` }
func MessagePartStatus ¶
func MessagePartStatus(partId string) ([]MessageDetails, error)
func MessageStatus ¶
func MessageStatus(messageId string) ([]MessageDetails, error)
type MessageId ¶
type MessageId struct {
Id string `json:"message_id"`
}
func Batch ¶
func Batch(messages *[]MessageBody) ([]MessageId, error)
func Send ¶
func Send(message *MessageBody) (MessageId, error)
type Originator ¶
type Originator struct { CreatedAt string `json:"created_at"` LastUsedAt string `json:"last_used_at"` Originator string `json:"originator"` State string `json:"state"` Id int32 `json:"id"` Default bool `json:"default"` }
func CreateOriginator ¶
func CreateOriginator(originator *BaseOriginator) (Originator, error)
func Originators ¶
func Originators() ([]Originator, error)
func SetDefaultOriginator ¶
func SetDefaultOriginator(originator string) (Originator, error)
type Routing ¶
type Template ¶
type Template struct { CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at,omitempty"` Template string `json:"template"` Title string `json:"title"` Id int32 `json:"id"` }
func CreateTemplate ¶
func CreateTemplate(template *BaseTemplate) (Template, error)
func EditTemplate ¶
func EditTemplate(template *BaseTemplate) (Template, error)
Click to show internal directories.
Click to hide internal directories.