yunpian:云片网 GO SDK

时间:2021-05-01 00:36:33
【文件属性】:
文件名称:yunpian:云片网 GO SDK
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-01 00:36:33
Go yunpian 云片网 GO SDK ##基本概念 创建一个api对象 然后对应的方式调用函数 api.{resource}{function} 传入参数的结构体为函数名+Info 例:SmsSend(info SMSSendInfo) 返回值error为nil则是执行成功,附带的返回信息在第一个返回值中。 ##使用需要import 本代码 import ( "github.com/shesuyo/yunpian" ) ##创建一个新的云片API api := NewYunpianAPI("你的apikey") ##发送手机短信验证码 api.SmsSend(SMSSendInfo{Mobile: "13250061802", Text: "【垣创科技】您的验证码是970702"}) ##发送语音验证码 api.VoiceSend(VoiceSendInfo{Mobile: "1325
【文件预览】:
yunpian-master
----yunpian.go(12KB)
----LICENSE(1KB)
----README.md(753B)
----yunpian_test.go(4KB)
----.gitignore(266B)

网友评论