Skip to content

About

This is a simple ruby wrapper for https://pubgtracker.com/site-api

Resources

Stars

7 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

PubgApi

Build Status

This is a simple ruby wrapper for https://pubgtracker.com/site-api

Installation

Add to Gemfile

gem 'pubg-api'

Configuration

The following configuration need to be setup to your code.

Pubg.configure do |c|
  c.trn_api_key = 'trn_api_key'
end

If you are using rails, you can create a file in config/initializers.

Usage Examples

Retrieve a player status by nickname.

Pubg::Player.find('playername')

Open here an example of response for this request.

This will get all the stats for the current season. You may get more data by using filters. season, mode, region

Pubg::Player.find('playername', {
                                  mode: 'solo',
                                  season: '2018-01',
                                  region: 'sa'
                                })

Matches status for a given player account

Pubg::Matches.find('account.9e915505fad245f696944e4b108986fa')

Open here an example of response for this request.

Running the tests

Spec files are located under /spec directory. You can run them using rspec command.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

This is a simple ruby wrapper for https://pubgtracker.com/site-api

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages