박찬수

reply soccer

...@@ -28,7 +28,7 @@ app.post('/hook', function (req, res) { ...@@ -28,7 +28,7 @@ app.post('/hook', function (req, res) {
28 console.log('[request message]', eventObj.message); 28 console.log('[request message]', eventObj.message);
29 console.log("Receive Message : ", eventObj.message.text); 29 console.log("Receive Message : ", eventObj.message.text);
30 30
31 - console.log(soccer.GetPlayerInfo(33, 2019)); 31 + console.log(soccer.GetPlayerInfo(276, 2019));
32 32
33 request.post( 33 request.post(
34 { 34 {
......
...@@ -22,7 +22,7 @@ module.exports = function(){ ...@@ -22,7 +22,7 @@ module.exports = function(){
22 var options = { 22 var options = {
23 method: 'GET', 23 method: 'GET',
24 url: 'https://v3.football.api-sports.io/players', 24 url: 'https://v3.football.api-sports.io/players',
25 - qs: {id: '276', season: '2019'}, 25 + qs: {id: playerID, season: season},
26 headers: { 26 headers: {
27 'x-rapidapi-host': 'v3.football.api-sports.io', 27 'x-rapidapi-host': 'v3.football.api-sports.io',
28 'x-rapidapi-key': '526fc70a2e8b315e9a960ac4b4764191' 28 'x-rapidapi-key': '526fc70a2e8b315e9a960ac4b4764191'
......