Showing
1 changed file
with
0 additions
and
17 deletions
1 | -var request = require('request'); | ||
2 | - | ||
3 | -var options = { | ||
4 | - method: 'GET', | ||
5 | - url: 'https://v3.football.api-sports.io/players', | ||
6 | - qs: {id: '276', season: '2019'}, | ||
7 | - headers: { | ||
8 | - 'x-rapidapi-host': 'v3.football.api-sports.io', | ||
9 | - 'x-rapidapi-key': '526fc70a2e8b315e9a960ac4b4764191' | ||
10 | - } | ||
11 | -}; | ||
12 | - | ||
13 | -request(options, function (error, response) { | ||
14 | - if (error) throw new Error(error); | ||
15 | - console.log(response.body); | ||
16 | -}); | ||
17 | - | ||
18 | module.exports = { | 1 | module.exports = { |
19 | GetPlayerInfo : function(playerID, season){ | 2 | GetPlayerInfo : function(playerID, season){ |
20 | var request = require('request'); | 3 | var request = require('request'); | ... | ... |
-
Please register or login to post a comment