本文主要是介绍短信平台API接口demo示例-Node/SMS/XSend,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
DEMO: SMS/XSend - 短信模板发送
原文链接
var request = require('request');
var crypto = require('crypto');
var appid = "input your appid";
var appkey = "input your appkey";
var api = "https://api-v4.mysubmail.com/sms/xsend";
//生成加密签名function BuildSignature(params){var sorted = [];for(var key in params) {sorted[sorted.length] = key;}sorted.sort();var tempDict = {};for(var i = 0; i < sorted.length; i++) {tempDict[sorted[i]] = params[sorted[i]];}var signStr = "";for(var key in tempDict) {signStr += key + '=' + tempDict[key] + '&'; }signStr = signStr.substring(0, signStr.length-1);signStr =
这篇关于短信平台API接口demo示例-Node/SMS/XSend的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!