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 🙏

© 2024 – Pkg Stats / Ryan Hefner

alidayu-node

v1.0.3

Published

阿里大鱼nodejs版sdk

Downloads

24

Readme

阿里大鱼nodejs版SDK

安装

npm install --save alidayu-node

使用方法

var App = require('alidayu-node');
var app = new App('App Key', 'App Secret');

app.smsSend({
    sms_free_sign_name: '注册验证',
    sms_param: {"code": "123456", "product": "测试网站"},
    rec_num: '13599999999',
    sms_template_code: 'SMS_640004'
});

方法列表

短信发送

smsSend(params, callback)

  • params
    • {string} sms_free_sign_name 短信签名 传入的短信签名必须是在阿里大鱼“管理中心-短信签名管理”中的可用签名。
    • {json} sms_param 短信模板变量 传参规则{"key":"value"},key的名字须和申请模板中的变量名一致,多个变量之间以逗号隔开
    • {string} rec_num 短信接收号码 支持单个或多个手机号码,传入号码为11位手机号码,不能加0或+86。群发短信需传入多个号码,以英文逗号分隔,一次调用最多传入200个号码
    • {string} sms_template_code 短信模板ID 传入的模板必须是在阿里大鱼“管理中心-短信模板管理”中的可用模板。示例:SMS_585014
  • callback 回调,参考 http://open.taobao.com/doc2/apiDetail.htm?apiId=25450

短信发送记录查询

smsQuery(params, callback)

  • params
    • {string} rec_num 短信接收号码
    • {string} query_date 短信发送日期,支持近30天记录查询,格式yyyyMMdd
    • {number} current_page 分页参数,页码
    • {number} page_size 分页参数,每页数量。最大值100
  • callback 回调,参考 http://open.taobao.com/doc2/apiDetail.htm?apiId=26039

语音通知

voiceSinglecall(params, callback)

  • params
    • {string} called_num 被叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500
    • {string} called_show_num 被叫号显,传入的显示号码必须是阿里大鱼“管理中心-号码管理”中申请通过的号码
    • {string} voice_code 语音文件ID,传入的语音文件必须是在阿里大鱼“管理中心-语音文件管理”中的可用语音文件
  • callback 回调,参考 http://open.taobao.com/doc2/apiDetail.htm?apiId=25445

文本转语音通知

ttsSinglecall(params, callback)

  • params
    • {json} tts_param 文本转语音(TTS)模板变量,传参规则{"key":"value"},key的名字须和TTS模板中的变量名一致,多个变量之间以逗号隔开
    • {string} called_num 被叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500
    • {string} called_show_num 被叫号显,传入的显示号码必须是阿里大鱼“管理中心-号码管理”中申请或购买的号码
    • {string} tts_code TTS模板ID,传入的模板必须是在阿里大鱼“管理中心-语音TTS模板管理”中的可用模板
  • callback 回调,参考 http://open.taobao.com/doc2/apiDetail.htm?apiId=25444

语音双呼

voiceDoublecall(params, callback)

  • params
    • {string} caller_num 主叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500
    • {string} caller_show_num 主叫号码侧的号码显示,传入的显示号码必须是阿里大鱼“管理中心-号码管理”中申请通过的号码。显示号码格式如下057188773344,4001112222,95500
    • {string} called_num 被叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500
    • {string} called_show_num 被叫号码侧的号码显示,传入的显示号码可以是阿里大鱼“管理中心-号码管理”中申请通过的号码。显示号码格式如下057188773344,4001112222,95500。显示号码也可以为主叫号码。
  • callback 回调,参考 http://open.taobao.com/doc2/apiDetail.htm?apiId=25443

更新日志

1.0.2

  • 修复当参数类型为object时报签名错误的问题