Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
npm install bm-sms --save
####1. 必要配置:
{
'smser': 'yuntongxin',
'debug': true,
'config': {
...
}
}
smser
: 指定发送渠道config
: 发送渠道必要配置(接口鉴权等必要配置信息)debug
: [可选], 为true
时,将在命令行输出接口请求详细信息####2. 调用方式:
//以yuntongxin为例
const options = {
'smser': 'yuntongxin',
'config': {
'sandbox': true,
'account_sid': '00000000000000000000000000000000',
'auth_token': '00000000000000000000000000000000',
'app_id': '00000000000000000000000000000000',
'vcode_template_id': 1,
'vcode_timeout_min': 10,
},
};
const sms = new BmqbSms(options);
sms.sendVcode('13871451762', '你的验证码是...').then(res => {
console.log(res);
});
####3. API:所有API均以Promise对象作为返回结果。
强制限定每次发送条数不得超过 1000 条,请注意分片发送
。格式为:[
{
"phone": "手机号1",
"context": "%E6%B5%8B%E8%AF%950"
},
{
"phone": "手机号2",
"context": "%E6%B5%8B%E8%AF%951"
},
{
"phone": "手机号3",
"context": "%E6%B5%8B%E8%AF%952"
}
]
NOTICE: 不支持某种发送方式的渠道,当调用该种方式API时,将会抛出异常!
####4. 返回结果:
约定返回结果为一个SmsResponse
对象,该对象有以下属性:
通过promise.then捕获返回结果
FAQs
BMQB SMS package
We found that bm-sms demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.