Documentation ¶
Overview ¶
Package plivo is to send SMS tools.
Index ¶
Examples ¶
Constants ¶
View Source
const PlivoAPI = "https://api.plivo.com/v1/Account"
PlivoAPI URL.
Variables ¶
This section is empty.
Functions ¶
func MakeBulkDst ¶
MakeBulkDst to format bulk dst numbers.
Example ¶
fmt.Println(MakeBulkDst("1,2,3,4,5", ","))
Output: 1<2<3<4<5
Types ¶
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message struct
Example ¶
account := &Account{User: TestUser, Password: TestPassword} msg := NewMessage(TestDst, TestSrc, "Hello 世界!", account) fmt.Println(msg) msg.Send()
Output: <dst: "123456789" src: "886976543210" text: "Hello 世界!" Len: 9>
func NewMessage ¶
NewMessage new a Message.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
plivoQuickSend
快速單發 Plivo SMS.
|
快速單發 Plivo SMS. |
plivoSendMass
大量發送 Plivo SMS.
|
大量發送 Plivo SMS. |
Click to show internal directories.
Click to hide internal directories.