Summary

Introduction:

PUBG API provides services to interact with PUBG using the official PUBG Web API.

* Please note that only Matches and Players methods are supported actually.

To submit bug reports and feature suggestions, or to track changes: https://drupal.org/project/issues/pubg_api

Requirements:

  • PHP 7

Installation

Install as you would normally install a contributed Drupal module.

Configuration

After the module has been enabled, access /admin/config/services/pubg_api and set your PUBG API key.

* The configuration form provides a link to the PUBG page where you can create or retrieve your PUBG API key.

How to use it

2 services provided :

  • pubg_api.matches
    • getSingleMatch(string $shard, string $match_id)
  • pubg_api.players
    • getPlayers(string $shard, string $player_ids = '', string $player_names = '')
    • getSinglePlayer(string $shard, string $player_id)
    • getPlayerLifetimeStats(string $shard, string $player_id, bool $gamepad)
    • getPlayerWeaponMastery(string $shard, string $player_id)
    • getPlayerSurvivalMastery(string $shard, string $player_id)

Read more about Services and dependency injection in Drupal 8

* Supported shard values are:

  • kakao
  • psn
  • stadia
  • steam
  • xbox

Mainteners

Current maintainers:

Project information

Releases