Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

yidun-anticheat-node-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yidun-anticheat-node-sdk

anticheat node sdk

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
30
1400%
Maintainers
1
Weekly downloads
 
Created
Source

反作弊纯服务端 Node SDK

安装

npm install yidun-anticheat-node-sdk --save

使用

const AnticheatChecker = require('yidun-anticheat-node-sdk');

// type 可选值: 'login', 'register', 'activity', 分为对应登录保护,注册保护,营销反作弊
const checker = new AnticheatChecker('you type', {
  secretId: 'your secret id',
  secretKey: 'your secret key',
  businessId: 'your business id'
});

// 业务数据详见:http://support.dun.163.com/documents/15588071870066688?docId=150457664094261248
// 其中:ip, account,phone,runEnv,operatingTime 是必填字段
checker.check({
  ip: 'user ip',
  account: md5('user account'),
  phone: md5('user phone'),
  runEnv: 2, // 应用运行环境
  operatingTime: 'user operating time'
}, (error, data) => {
  console.log(error, data);
});

Keywords

yidun

FAQs

Package last updated on 05 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts