🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

aliyumsms

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aliyumsms

nodejs sdk for aliyun sms

1.0.2
latest
Source
npm
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

ali-sms

[![build status][travis-image]][travis-url] [travis-image]: https://travis-ci.org/tsq-old/ali-sms.svg?branch=master [travis-url]: https://travis-ci.org/tsq-old/ali-sms

Nodejs SDK for Aliyun SMS service

Install

npm install ali-sms

Usage

const sms = require("ali-sms");
const accessKeyID     = process.env.ALI_SMS_ACCESSKEYID;
const accessKeySecret = process.env.ALI_SMS_ACCESSKEYSECRET;

const config = {
  accessKeyID       : accessKeyID,
  accessKeySecret   : accessKeySecret,
  paramString       : {code: '123456'},
  recNum            : ['1891234567'],
  signName          : 'alibaba',
  templateCode      : 'SMS_28100008',
};
sms(config, (err, body) => {
  console.log(err, body);
});

Config

param|type|description ----|----|---|---- accessKeyID | string | access key id, get from aliyun accessKeySecret | string | access key secret, get from aliyun paramString | object | ali sms param which you have defined on aliyun sms dashboard recNum | array | phone numbers of users signName | string | ali sms param, get from aliyun sms dashboard templateCode | string | ali sms param, get from aliyun sms dashboard

Debug

DEBUG=sms npm start

Keywords

aliyun

FAQs

Package last updated on 04 Mar 2017

Did you know?

Socket

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.

Install

Related posts