Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/isayme/node-alidayu
阿里大鱼Node SDK
https://github.com/isayme/node-alidayu
Last synced: 12 days ago
JSON representation
阿里大鱼Node SDK
- Host: GitHub
- URL: https://github.com/isayme/node-alidayu
- Owner: isayme
- License: mit
- Created: 2015-11-09T16:05:54.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-16T08:47:18.000Z (over 8 years ago)
- Last Synced: 2024-12-01T16:59:57.432Z (22 days ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-alidayu
阿里大鱼Node SDK.# 安装
> npm i node-alidayu --save# 使用
````
var AliDayu = require('node-alidayu')
var client = new AliDayu({
app_key: 'your app key',
app_secret: 'your app secret'
})client.sms({
rec_num: 'phone number',
sms_free_sign_name: '注册验证',
sms_template_code: 'SMS_2140795',
sms_param: {
code: "4568",
product: 'product name'
}
}).then(function (data) {
console.log('sucess')
}).catch(function (err) {
console.log('fail')
})
````# 支持特性
- 使用Promise, 不支持callback
- alibaba.aliqin.fc.sms.num.send (短信发送)# 参考文档
[短信发送](https://api.alidayu.com/doc2/apiDetail.htm?spm=a3142.7395905.4.6.RoLvnK&apiId=25450)