go get -u github.com/cheerego/aliyun-iot
import (
"github.com/cheerego/aliyun-iot"
)
var c iot.Client = Client{
AccessKeyId: "{AccessKeyId}",
AccessKeySecret: "{AccessKeySecret}",
Version: "{2018-01-20}",
RegionId: "{cn-shanghai}",
}
func main(){
request := make(map[string]string)
request["ProductKey"] = "xxxxx"
request["Action"] = "RRpc"
request["RequestBase64Byte"] = base64.StdEncoding.EncodeToString([]byte("1312312"))
request["DeviceName"] = "MACHINE_100023"
request["Timeout"] = "5000"
res := c.Send(request)
fmt.Println(res)
}