/bilibili-pcheartbeat

bilibili-pcheartbeat

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

BiliBili Heartbeat Server

Introduction

null

Example OR Documentation

Example OR Documentation

Quick Start

  1. Clone or download this repository

  2. Install CN-Nodejs and EN-Nodejs

  3. Use npm to install packages

> npm install
  1. Start-up
> node app.js

API

Use POST method to access API, and the return data is in JSON format

/enc

Url

http://127.0.0.1:3000/enc

Headers

  • Content-type: application/json

Param

{
    "t": {
        "id": [1, 199, 0, 123456],
        "device": "[\"device\",\"device\"]",
        "ets": "ets",
        "benchmark": "secret_key",
        "time": "heartbeat_interval",
        "ts": "ts",
        "ua": "ua"
    },
    "r": [2, 5, 1, 4]
}

Return

  • Success
{"s": "be02e0ac4248ff3e59bea681258319bec489db3b5766eb0d40ce25516889c6df2bb8383c16d8a9bbb3ced7283388fb4df89718430064564bfaf6be246b983910"} 
  • Error
{"code": -1, "msg": "405 Method Not Allowed"}

Disclaimer

The project is for study and technical communication only, do not use it for illegal purposes!

I don"t take any responsibility if legal dispute occurs.

License

GPL v3