Globalstats

FREE
By raygorodskij
Updated 5 months ago
Gaming
-/10
Popularity Score
-
Latency
-
Success Rate

Globalstats API Documentation

Enrich your games' experience by adding a global highscore for your games.

View API Details
POSTaccomplishAnAchievement
POSTcreateRegisterLink
POSTcreateStatistics
POSTgetAccessToken
POSTgetAllAchievements
POSTgetLeaderboard
POSTgetStatistic
POSTgetStatisticSection
POSTgetUsersAchievements
POSTupdateStatistics
POSTaccomplishAnAchievement

This can be used to accomplish an achievement for example at a specific point in the game like when a boss was beaten.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
achievementKeySTRING
REQUIREDThe key of the achievement.
accessTokenSTRING
REQUIREDAccess Token from `getAccessToken` method.
statisticIdSTRING
REQUIREDId of the statistic.
Code Snippet
unirest.post("https://GlobalstatsraygorodskijV1.p.rapidapi.com/accomplishAnAchievement")
.header("X-RapidAPI-Host", "GlobalstatsraygorodskijV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://GlobalstatsraygorodskijV1.p.rapidapi.com/accomplishAnAchievement
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://GlobalstatsraygorodskijV1.p.rapidapi.com/accomplishAnAchievement")
.header("X-RapidAPI-Host", "GlobalstatsraygorodskijV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication