All Projects → Wobow → pubg_api

Wobow / pubg_api

Licence: other
A nodejs wrapper for the official PUBG API

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to pubg api

pubg-lobby-proxy
Eazy way to view and modify PLAYERUNKNOWN'S BATTLEGROUNDS lobby traffic
Stars: ✭ 33 (-15.38%)
Mutual labels:  pubg
PUBG-Replay-Manager
Shows undocumented information from PUBG replays, and has the ability to import and export replays
Stars: ✭ 44 (+12.82%)
Mutual labels:  pubg
planepath
pubg planepath drawing
Stars: ✭ 37 (-5.13%)
Mutual labels:  pubg
PUBGServersPing
This site checks your ping to PUBG servers!
Stars: ✭ 50 (+28.21%)
Mutual labels:  pubg
PUBG USB
这是 某宝 卖大几千的压枪源码,不做任何数据读取以及侵入,这里采用外数据采集(IMG), 至今可以使用,无视任何更新(新武器,以及新武器的压枪规则,需要自己调试,在data_config下);
Stars: ✭ 44 (+12.82%)
Mutual labels:  pubg
pubg mobile memory hacking
Pubg Mobile Emulator Gameloop Memory Hacking C++ Source Code. Ex: Name, Cords, Bones, Weapons, Items, Box, Drop, Aimbot etc.
Stars: ✭ 69 (+76.92%)
Mutual labels:  pubg
ESP For PubgMobile
🛩Pubg Mobile Hack using Extra Sensory Perception(ESP)🐱‍💻
Stars: ✭ 82 (+110.26%)
Mutual labels:  pubg
PUBGSharp
C# wrapper for PUBG stats API
Stars: ✭ 24 (-38.46%)
Mutual labels:  pubg
Crawler pubg.op.gg
This is a web crawler for pubg.op.gg, written by Ruichong Liu. 绝地求生游戏数据抓取
Stars: ✭ 15 (-61.54%)
Mutual labels:  pubg
pubg-internal
Demo internal ESP and Aimbot for PUBG.
Stars: ✭ 129 (+230.77%)
Mutual labels:  pubg
game apis
This repository is for integrating with different apis to allow you to pull player or game data
Stars: ✭ 24 (-38.46%)
Mutual labels:  pubg
steam community market
Get item prices and volumes from the Steam Community Market using Python 3
Stars: ✭ 24 (-38.46%)
Mutual labels:  pubg
graphql-pubg
GraphQL wrapper for the PUBG API (deprecated)
Stars: ✭ 52 (+33.33%)
Mutual labels:  pubg
pubg-typescript-api
TypeScript wrapper on official PUBG API.
Stars: ✭ 11 (-71.79%)
Mutual labels:  pubg

Nodejs Wrapper for the official PUBG API

npm 0.0.5

Intro

This is a universal wrapper/client for the official PlayerUnknown's BattleGround's API that runs on Node JS and the browser.

Project owner is Wobow, and is open to contribution.

It includes helpers to do the following :

Matches

  • Load and filter matches
  • Load a specific match

Table of contents

Installation

$ npm install pubg-api@latest -S

Usage

After installation, you can import the module to your project using require.

const Pubgapi = require('pubg-api');

const apiInstance = new Pubgapi('<apiKey>');

The module exposes a class that represents an instance of the api, given an official API key that you must provide.

You can then interract with the instance of the API. All routes use promises by default.

For example :

apiInstance
    .loadMatches(options)
    .then(matches => {
        // success
    }, err => {
        // handle error
    });

You can force the wrapper to return rxjs' Observables only by specifying with the asyncType options:

const apiInstance = new PubgApi('<apiKey>', {asyncType: 'observable'});

or

apiInstance.asyncType = 'observable';

then

apiInstance
    .loadMatches(options) // <-- Now returns an Observable
    .subscribe(matches => {
        // success
    }, err => {
        // handle error
    });

Status

This tab highlight the status of each route and function attached to it.

Route Function Status Version
/matches PubgApi.loadMatches Deprecated ^0.0.1
/matches/{id} PubgApi.loadMatchById Up to date ^0.0.1
/players/ PubgApi.searchPlayers Up to date ^1.0.0
/players/{id} PubgApi.loadPlayerById Up to date ^1.0.0
telemetry PubgApi.loadTelemetry Up to date ^0.6.0
/status PubgApi.healthStatus Up to date ^0.0.1

Contributing

If you want to contribute, open a pull request. Unless the change you are requesting is a hotfix for the latest stable version, you should always pull from develop.

Branch organisation

master is the branch where we try to have the latest stable version up to date. Every new version shall be tagged properly with its version, followed by a release. One cannot push to this branch without a code review from the code owners. Use develop instead.

develop is the branch used to iterate the development versions of the wrapper. It should always be based on master. All unstable versions of the wrapper will be tested on this branch.

Versioning

We will follow the naming convention of major.minor.build.

Lint

We are using eslint to check the code syntax, and are using the AirBnB style guide for Javascript. To run the lint :

$ npm run lint

Be sure to clean your code before submitting it.

Building

To build the wrapper, run

$ npm run build

It will generate the file lib/pubg-api.js using babel.

Publishing

Run

$ npm publish

It will automatically check lint, unit tests and build the lib properly before publishing. The version must be bumped manually.

Tests

You can run the unit tests executing npm test. To execute the tests, you must provide an environnment variable PUBG_API_KEY_TEST set with the api key you want to use to run the tests.

$ export PUBG_API_KEY_TEST=<your API key>
$ npm test

Roadmap & Guidelines

The goal of this wrapper is to simplify access to the API, and give a broader spectrum of functions to help developers use the API to its full potential.

This includes developping functions that computes multiple API calls and responses.

  • Implement Telemetry
  • Implement rxjs observable alternative to promise
  • Allow selecting a specific shard for each call, instead of setting a default shard
  • Wrap multiple shard functions
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].