Showing
1 changed file
with
8 additions
and
8 deletions
... | @@ -87,13 +87,13 @@ exports.TopAssist = function(leagueID, callbackFunc){ | ... | @@ -87,13 +87,13 @@ exports.TopAssist = function(leagueID, callbackFunc){ |
87 | GetTopAssist(leagueID, 2021, callbackFunc); | 87 | GetTopAssist(leagueID, 2021, callbackFunc); |
88 | } | 88 | } |
89 | 89 | ||
90 | -// 입력: 팀ID, 반환: 경기 일정 | 90 | +// 입력: 팀ID, 시즌(*필수), 반환: 경기 일정 |
91 | -function GetGameSchedule_teamname(teamID){ | 91 | +function GetGameSchedule_teamname(season, teamID){ |
92 | var request = require("request"); | 92 | var request = require("request"); |
93 | var options = { | 93 | var options = { |
94 | method: 'GET', | 94 | method: 'GET', |
95 | url: 'https://v3.football.api-sports.io/fixtures', | 95 | url: 'https://v3.football.api-sports.io/fixtures', |
96 | - qs: {team: teamID}, | 96 | + qs: {season: season, team: teamID}, |
97 | headers: { | 97 | headers: { |
98 | 'x-rapidapi-host': 'v3.football.api-sports.io', | 98 | 'x-rapidapi-host': 'v3.football.api-sports.io', |
99 | 'x-rapidapi-key': '526fc70a2e8b315e9a960ac4b4764191' | 99 | 'x-rapidapi-key': '526fc70a2e8b315e9a960ac4b4764191' |
... | @@ -105,13 +105,13 @@ function GetGameSchedule_teamname(teamID){ | ... | @@ -105,13 +105,13 @@ function GetGameSchedule_teamname(teamID){ |
105 | }); | 105 | }); |
106 | } | 106 | } |
107 | 107 | ||
108 | -// 입력: 팀ID, 반환: 소속 선수 | 108 | +// 입력: 팀ID,시즌(*필수), 반환: 소속 선수 |
109 | -function GetTeamMembers(teamID){ | 109 | +function GetTeamMembers(season, teamID){ |
110 | var request = require("request"); | 110 | var request = require("request"); |
111 | var options = { | 111 | var options = { |
112 | method: 'GET', | 112 | method: 'GET', |
113 | url: 'https://v3.football.api-sports.io/players', | 113 | url: 'https://v3.football.api-sports.io/players', |
114 | - qs: {team: teamID}, | 114 | + qs: {season: season, team: teamID}, |
115 | headers: { | 115 | headers: { |
116 | 'x-rapidapi-host': 'v3.football.api-sports.io', | 116 | 'x-rapidapi-host': 'v3.football.api-sports.io', |
117 | 'x-rapidapi-key': '526fc70a2e8b315e9a960ac4b4764191' | 117 | 'x-rapidapi-key': '526fc70a2e8b315e9a960ac4b4764191' |
... | @@ -124,12 +124,12 @@ function GetTeamMembers(teamID){ | ... | @@ -124,12 +124,12 @@ function GetTeamMembers(teamID){ |
124 | } | 124 | } |
125 | 125 | ||
126 | // 입력: 팀ID, 시즌*(필수), 반환: 팀 순위 | 126 | // 입력: 팀ID, 시즌*(필수), 반환: 팀 순위 |
127 | -function GetTeamStanding(teamID, season){ | 127 | +function GetTeamStanding(season, teamID){ |
128 | var request = require("request"); | 128 | var request = require("request"); |
129 | var options = { | 129 | var options = { |
130 | method: 'GET', | 130 | method: 'GET', |
131 | url: 'https://v3.football.api-sports.io/standings', | 131 | url: 'https://v3.football.api-sports.io/standings', |
132 | - qs: {team: teamID, season: season}, | 132 | + qs: {season: season, team: teamID}, |
133 | headers: { | 133 | headers: { |
134 | 'x-rapidapi-host': 'v3.football.api-sports.io', | 134 | 'x-rapidapi-host': 'v3.football.api-sports.io', |
135 | 'x-rapidapi-key': '526fc70a2e8b315e9a960ac4b4764191' | 135 | 'x-rapidapi-key': '526fc70a2e8b315e9a960ac4b4764191' | ... | ... |
-
Please register or login to post a comment