1.0.0 • Published 6 years ago
yimei v1.0.0
亿美短信
Features
- sendSMS
- sendVoice
- getBalance
- getEachFee
- login
Get Started
Typescript Usage
import {Client} from 'yimei';
(async()=>{
const client = new Client({
serialNumber: 'SERIAL_NUMBER',
password: 'PASSWORD',
sessionKey: 'SESSION_KEY', // optional,you can login after
gatewayUrl: 'GATEWAY_URL', // optional
timeout: 5000, // optional, default is 5000ms
});
const ret = await client.sendSMS(['13666666666','13777777777'],'验证码:1111');
console.log(ret);
})();
Javascript Usage
var Client = require('yimei').Client;
var client = new Client({
serialNumber: 'SERIAL_NUMBER',
password: 'PASSWORD',
sessionKey: 'SESSION_KEY', // optional,you can login after
gatewayUrl: 'GATEWAY_URL', // optional
timeout: 5000, // optional, default is 5000ms
});
client.sendSMS(['13666666666','13777777777'],'验证码:1111').then(console.log).catch(console.log);
1.0.0
6 years ago