messagepro

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessagePro

type MessagePro interface {
	MessageSend(phone, text string) (MessageProSendResponse, error)
}

func New

func New(apiKey, specialPhoneNumber, endpoint string) MessagePro

type MessageProGetstatusResponse

type MessageProGetstatusResponse struct {
	Delivered         string `json:"delivered"`
	Result            string `json:"result"`
	SourceNumber      string `json:"source_number"`
	DestinationNumber string `json:"destination_number"`
	Text              string `json:"text"`
}
MessageProGetstatusRequest struct {
	Key string `json:"key"`
	ID  string `json:"id"`
}

type MessageProSendResponse

type MessageProSendResponse struct {
	Result    string `json:"Result"`
	MessageID int    `json:"Message ID"`
	Reason    string `json:"Reason,omitempty"`
}
MessageProSendRequest struct {
	Key  string `json:"key"`
	From string `json:"from"`
	To   string `json:"to"`
	Text string `json:"text"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL