npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

bimartmessage

v1.1.3

Published

bimart_message

Downloads

33

Readme

#票市通对接云之讯短信接口

例子如下

var API = require('bimartmessage');
/**
 * API构造函数
 * 
 * @param {String} accountSid 开发者账号ID,注册云之讯官网,在控制台中即可获取此参数
 * @param {String} authToken 账户授权令牌,相当于开发者账号ID(Account Sid)的密码,注册云之讯官网,在控制台中即可获取此参数
 */
var api = new API("accountSid", "authToken");
/**
 * API-发送验证码接口
 * 
 * @param {String} appId 云之讯不同应用都会有一个唯一的AppId
 * @param {String} code 验证码信息,如果有多个参数则需要写在同一个字符串中,以逗号分隔. (如:param=“a,b,c”)
 * @param {String} templateId 短信模板Id
 * @param {String} phoneNo 接收短信的手机号码
 * @param {Function} callback 回调函数的参数(err, data, res)
 */
api.identifyingCode("appId", "code", "templateId", "phoneNo", function (err, data, res) {
    console.log("回调函数");
    console.log(res.statusCode);
    console.log(res.headers);
    console.log(data.toString());
    var testJson = JSON.parse(data.toString());
    try {
        console.log(api.checkConfig[testJson.resp.respCode]);
    } catch (err) {
        console.log(err);
    }
});


报错编码

{
    "0": "发送成功",
    "000000": "发送成功",
    "105100": "短信服务请求异常",
    "105101": "url关键参数为空",
    "105102": "号码不合法",
    "105103": "没有通道类别",
    "105104": "该类别为冻结状态",
    "105105": "没有足够金额",
    "105106": "不是国内手机号码并且不是国际电话",
    "105107": "黑名单",
    "105108": "含非法关键字",
    "105109": "该通道类型没有第三方通道",
    "105110": "短信模板ID不存在",
    "105111": "短信模板未审核通过",
    "105112": "短信模板替换个数与实际参数个数不匹配",
    "105113": "短信模板ID为空",
    "105114": "短信内容为空",
    "105115": "短信类型长度应为1",
    "105116": "同一天同一用户不能发超过3条相同的短信",
    "105117": "模板ID含非法字符",
    "105118": "短信模板有替换内容,但参数为空",
    "105119": "短信模板替换内容过长,不能超过70个字符",
    "105120": "手机号码不能超过100个",
    "105121": "短信模板已删除",
    "105122": "同一天同一用户不能发超过N条验证码",
    "105123": "短信模板名称为空",
    "105124": "短信模板内容为空",
    "105125": "创建短信模板失败",
    "105126": "短信模板名称错误",
    "105127": "短信模板内容错误",
    "105128": "短信模板id为空",
    "105129": "短信模板id不存在",
    "103123": "未上线应用不能超过100个client",
    "103124": "已经是开通状态",
    "103125": "子账号余额不足",
    "103126": "未上线应用或demo只能使用白名单中号码",
    "103127": "测试demo不能创建子账号",
    "105130": "30秒内不能连续发同样的内容",
    "105131": "30秒内不能给同一号码发送相同模板消息",
    "105132": "验证码短信参数长度不能超过10位",
    "105139": "补发短信模板不规范"
}