0.0.2 • Published 5 years ago

mobileverticodeapi v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Description

Package 易码(http://www.51ym.me) for user to use it in their node project

Status: Release 0.0.1

We have use it in our project, if you have issue, please feel kind to tell author.

Api List

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) {

Naive Example

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')

Installation

npm install mobileverticodeapi

Tests

Contributors

  • incodingnowliu

MIT Licenced