https://github.com/gavinning/node-alidayu-sms
node-alidayu-sms
https://github.com/gavinning/node-alidayu-sms
Last synced: 10 months ago
JSON representation
node-alidayu-sms
- Host: GitHub
- URL: https://github.com/gavinning/node-alidayu-sms
- Owner: gavinning
- Created: 2016-11-27T08:02:02.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-27T10:21:17.000Z (about 9 years ago)
- Last Synced: 2024-09-25T09:28:09.504Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Alidayu SMS
---
### Install
```sh
npm i alidayu-sms --save
```
### Usage
```js
const Alidayu = require('alidayu-sms');
const alidayu = new Alidayu(clientOption, smsOption);
alidayu.send({
name: 'gavinning',
time: '2016-11-11 11:11:11',
tel: 13000000000
})
.then(res => console.log(res))
.catch(err => console.error(err))
```
clientOption
```js
{
'appkey' : 'appkey' ,
'appsecret' : 'secret' ,
'REST_URL' : ' http://gw.api.taobao.com/router/rest '
}
```
smsOption
```js
{
'extend' : '' ,
'sms_type' : 'normal' ,
'sms_free_sign_name' : '' ,
'sms_param' : "" ,
'rec_num' : '13000000000' ,
'sms_template_code' : ""
}
```