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

co-alidayu

v1.0.4

Published

阿里大鱼服务端Node库API,ES6版本

Downloads

6

Readme

co-alidayu

阿里大鱼NodeJS CO版 支持最新的NodeJS 5.0.0

http://www.alidayu.com/

功能列表

  • 短信发送
  • 语音通知
  • 文本转语音通知
  • 语音双呼

详细参见淘宝API文档

Changelog

1.0.4

  • 修复util里格式化日期的错误
  • 开始增加test case

1.0.3

  • 修复util里前方补0的BUG

1.0.2

  • 修复生成时间戳的BUG

1.0.1

  • 调用方法的返回值改为JSON对象
  • 更新 README

Installation

$ npm install co-alidayu

Usage

var AliDayu = require('co-alidayu');

var alidayu = new AliDayu(appid, appsecret);

// 发送短信
var sms = {
    extend: "",
    sms_free_sign_name: "注册验证",
    sms_param: {
        code: '168398',
        product: '启示录'
    },
    rec_num: "13700000000",
    sms_template_code: "SMS_1880148",
};
var ret = yield api.send_sms(sms);

// 语音通知
var data = {
    extend: "",
    called_num: "13700000000",
    called_show_num: "125900008888",
    voice_code: "367821",
};
var ret = yield api.voice_singlecall(data);

// 文本转语音通知
var data = {
    extend: "",
    tts_param: {
        name: '以下验证码',
        code: '123451'
    },
    called_num: "13700000000",
    called_show_num: "125900008888",
    tts_code: "TTS123214",
};
var ret = yield api.tts_singlecall(data);

// 语音双呼
var data = {
    extend: "",
    session_time_out: "120", // 超时自动挂断的秒数。不传视为不自动挂断。
    caller_num: "13700000000", // 主叫号码
    caller_show_num: "10086", // 主叫端显示的号码(马甲,必须在系统里登记备案过)
    called_num: "13700008888", // 被叫号码
    called_show_num: "10000", // 被叫端显示的号码(马甲,必须在系统里登记备案过)
};
var ret = yield api.voice_doublecall(data);

License

The MIT license.