luosimao
![Build Status](https://camo.githubusercontent.com/d0bbd538e1bfd8722bd8495958ae4160b96408820437b276773161b28c41a035/68747470733a2f2f7472617669732d63692e6f72672f6d69616f6c7a3132332f6c756f73696d616f2e7376673f6272616e63683d6d6173746572)
A SDK of luosimao.com for Golang
package main
import (
"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)
}
}