1.0.3 • Published 4 years ago

pubg-api-helper v1.0.3

Weekly downloads
8
License
ISC
Repository
github
Last release
4 years ago

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