The unOfficial World Cup 2014

FREE
By community
Updated 4 months ago
Sports
-/10
Popularity Score
-
Latency
-
Success Rate
Discussions
Hi Developer, feel free to ask your question:
maniprakash:3 years ago
0 Answers

welcome th text

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.get("https://community-unofficial-world-cup.p.rapidapi.com/api/player_season_stats?sort=goalsScored%2C-1&fields=season%2Cteam%2CgoalsScored&offset=50&limit=250")
.header("X-RapidAPI-Host", "community-unofficial-world-cup.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication