Package 易码(http://www.51ym.me) for user to use it in their node project
We have use it in our project, if you have issue, please feel kind to tell author.
login - 登陆
exports.login = async function (username, password){}
getYiMAUserInfo - 根据token获取易码的详细信息
exports.getYiMAUserInfo = async function (token){}
getMobileNumber - 获取电话号码接口
exports.getMobileNumber = async function (token, projectId){}
getYanzhengMa - 获取短信接口
exports.getYanzhengMa = async function (token, projectId, phoneNum) {}
freeThePhoneNum - 释放手机号码
exports.freeThePhoneNum = async function (token, projectId, phoneNum) {}
blackList - 拉黑号码
exports.blackList = async function (token, projectId, phoneNum) {
const VerifiCodeModule = require("mobileverticodeapi");
VerifiCodeModule.config("user token", "projectID");
const userInfo = await VerifiCodeModule.login('username', 'password');
//get project id from http://www.51ym.me
const res = await VerifiCodeModule.getMobileNumber('userInfo.token', 'projectId')
npm install mobileverticodeapi
- incodingnowliu