박찬수

commit all

function GetGameSchedule(teamID, leagueID, season, eventObj){
var request = require("request");
var options = {
method: 'GET',
url: 'https://v3.football.api-sports.io/fixtures',
qs: {team: teamID, league: leagueID, season: season},
headers: {
'x-rapidapi-host': 'v3.football.api-sports.io',
'x-rapidapi-key': '526fc70a2e8b315e9a960ac4b4764191'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
}
\ No newline at end of file
hello
\ No newline at end of file
var fs = require('fs');
fs.readFile('getids.js', 'utf-8', function(error, data) {
console.log('01 readAsync: %s',data);
if(error){
try{
fs.writeFileSync('file02_sync.txt', "hello", 'utf-8');
console.log('02 WRITE DONE!');
}catch(e){
console.log(e);
}
}
});
\ No newline at end of file