GithubHelp home page GithubHelp logo

gaojunle / aliyun-sms-nodejs Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 3 KB

阿里短信服务nodejs版本,支持发送短信服务,有业务级示例代码,简单方便,容易操作;

JavaScript 100.00%

aliyun-sms-nodejs's Introduction

aliyun-sms-nodejs

阿里短信服务nodejs版本,支持发送短信服务,有业务级示例代码,简单方便,容易操作; 由于个人网站需要添加用户基于手机号的注册服务,而后台使用是nodejs实现,因此调研当前基于nodejs的短信服务,发现当前没有一个可用版本;

由于阿里短信服务注册就送20元代金券短信一条4.5分,很实惠,因此就基于它的API接口实现了nodejs版本发送短信示例,提供大家参考,如果喜欢,请加个Star;

[不是阿里大于短信]

阿里云短信服务

短信服务(Short Message Service)是指通过调用短信发送API,将指定短信内容发送给指定手机用户。用户收到的短信来自106开头的号码,短信的内容多用于企业向用户传递验证码、系统通知、会员服务等信息。

参考文档:阿里短信服务完整接入流程

参考PHP版本及 签名算法说明 另外,还参考github nodejs项目aliyun-nodejs-sdk-smsV1实现;

使用说明:

  1. 注册阿里账号,申请开通短信服务;
  2. AccessKeyId及AccessKeySecret开通image
  3. 短信签名及短信模板申请,需要审核image
  4. 将本项目sms.js中对应要替换内容,替换成你的,直接node sms.js即可以发短信到手机;

如有问题请直接github上发Issues

aliyun-sms-nodejs's People

Contributors

gaojunle avatar

Stargazers

 avatar

Watchers

 avatar

aliyun-sms-nodejs's Issues

请教个问题

SyntaxError: Unexpected identifier
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module._compile (module.js:533:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:575:3

这个是什么原因呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.