Ga Min Cha

Upload appfunctions.js

1 +function GetGameSchedule(teamID, season, eventObj){
2 + var request = require("request");
3 + var options = {
4 + method: 'GET',
5 + url: 'https://v3.football.api-sports.io/fixtures',
6 + qs: {team: teamID, season: season},
7 + headers: {
8 + 'x-rapidapi-host': 'v3.football.api-sports.io',
9 + 'x-rapidapi-key': '526fc70a2e8b315e9a960ac4b4764191'
10 + }
11 + };
12 + request(options, function (error, response, body) {
13 + if (error) throw new Error(error);
14 + console.log(body);
15 + });
16 +}
...\ No newline at end of file ...\ No newline at end of file