pubg-api-helper
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

pubg-api-helper

pubg-api-helper is a library which helps you to interact with official PUBG API https://developer.pubg.com/.

Installation

Use the package manager npm to install pubg-api-helper.

npm install pubg-api-helper

Usage

import { APIHelper, Platform } from 'pubg-api-helper';

const api = new APIHelper(
  'YOUR API_KEY',
  Platform.YOUR_PLATFORM
);

//Getting user data and ID using nickname example 
const userDataReq = await api.playerByName('your_username');
const userData = await userDataReq.json();

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i pubg-api-helper

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

11.2 kB

Total Files

24

Last publish

Collaborators

  • jekanator