Sha256: ca87326e6179ef863651235b936068bda97710f34107931556564e8f1507efc4

Contents?: true

Size: 557 Bytes

Versions: 8

Compression:

Stored size: 557 Bytes

Contents

// 做一些其他测试时,需要发短信验证码
// 单独用这个文件做
// 如何运行
// node ./lib/authing_ruby/test/js_sdk_test/3.sendSMS.js

// 初始化
const { AuthenticationClient } = require("authing-js-sdk");
const authenticationClient = new AuthenticationClient({
  appId: "60ab26fe5be730bfc1742c68",
  appHost: "https://hn-staging.authing.cn",
});

// 手机号
phone = "13556136684";

// 调用接口发送
authenticationClient.sendSmsCode(phone)
  .then((r) => {
    console.log(r);
  })
  .catch((e) => {
    console.log(e);
  });

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
authing_ruby-1.1.6 lib/authing_ruby/test/js_sdk_test/3.sendSMS.js
authing_ruby-1.1.5 lib/authing_ruby/test/js_sdk_test/3.sendSMS.js
authing_ruby-1.1.4 lib/authing_ruby/test/js_sdk_test/3.sendSMS.js
authing_ruby-1.1.3 lib/authing_ruby/test/js_sdk_test/3.sendSMS.js
authing_ruby-1.1.2 lib/authing_ruby/test/js_sdk_test/3.sendSMS.js
authing_ruby-1.1.1 lib/authing_ruby/test/js_sdk_test/3.sendSMS.js
authing_ruby-1.1.0 lib/authing_ruby/test/js_sdk_test/3.sendSMS.js
authing_ruby-1.0.9 lib/authing_ruby/test/js_sdk_test/3.sendSMS.js