Skip to content

阿里大鱼Go语言开发包。One Golang package for alidayu service.

Notifications You must be signed in to change notification settings

ltt1987/alidayu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alidayu

阿里大鱼Go语言开发包。One Golang package for alidayu service.

阿里大鱼API说明文档:http://open.taobao.com/doc2/apiDetail.htm?spm=0.0.0.0.bkKKhG&apiId=25450
官网:http://alidayu.com

###使用方法:

  • 发送短信:alidayu.SendSMS
  • 文本转语音通知:alidayu.CallTTS
  • 发送语音通知:alidayu.CallVoice
  • 发起双方通话:alidayu.CallDouble
package main

import (
	"fmt"
	"github.com/ltt1987/alidayu"
)

func main() {
	alidayu.AppKey = "...your AppKey..."
	alidayu.AppSecret = "...your AppSecret..."
    alidayu.UseHTTP = true // set UseHTTP to true if prefer http over https

	success, resp := alidayu.SendSMS("18888888888", "身份验证", "SMS_4000328", `{"code":"1234","product":"alidayu"}`)
	fmt.Println("Success:", success)
	fmt.Println(resp)
}

About

阿里大鱼Go语言开发包。One Golang package for alidayu service.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages