Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miaolz123/luosimao
Golang SDK for luosimao.com
https://github.com/miaolz123/luosimao
Last synced: 3 days ago
JSON representation
Golang SDK for luosimao.com
- Host: GitHub
- URL: https://github.com/miaolz123/luosimao
- Owner: miaolz123
- License: mit
- Created: 2016-07-28T07:05:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-29T04:52:46.000Z (over 8 years ago)
- Last Synced: 2024-12-19T13:02:15.520Z (about 1 month ago)
- Language: Go
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# luosimao [![GoDoc](https://godoc.org/github.com/miaolz123/luosimao?status.svg)](https://godoc.org/github.com/miaolz123/luosimao) [![Build Status](https://travis-ci.org/miaolz123/luosimao.svg?branch=master)](https://travis-ci.org/miaolz123/luosimao)
### A SDK of luosimao.com for Golang
```go
package mainimport (
"log""github.com/miaolz123/luosimao"
)// Please replace this section
const (
keySMS = "3ax6xnjp29jd6fds4gc373sgvjxteol0"
keyVoice = "3ax6xnjp29jd6fds4gc373sgvjxteol0"
testMobileNumber = 13600000000
)func main() {
client := luosimao.Client{KeySMS: keySMS, KeyVoice: keyVoice}
err := client.SendSMS(testMobileNumber, "Hello World!【Google Inc.】")
if err != nil {
log.Println("Send SMS error:", err)
}
err = client.SendVoice(testMobileNumber, luosimao.MakeCaptcha(4))
if err != nil {
log.Println("Send voice error:", err)
}
}
```