Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박찬수
/
enjoy_soccer
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Ga Min Cha
2022-06-09 13:16:26 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bb21f2d345ea1c104a53c3a8cddefcbd87cb4436
bb21f2d3
1 parent
a21a30a4
Update appfunctions.js_teamID
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
appfunctions.js
appfunctions.js
View file @
bb21f2d
...
...
@@ -87,13 +87,13 @@ exports.TopAssist = function(leagueID, callbackFunc){
GetTopAssist
(
leagueID
,
2021
,
callbackFunc
);
}
// 입력: 팀ID, 반환: 경기 일정
function
GetGameSchedule_teamname
(
teamID
){
// 입력: 팀ID,
시즌(*필수),
반환: 경기 일정
function
GetGameSchedule_teamname
(
season
,
teamID
){
var
request
=
require
(
"request"
);
var
options
=
{
method
:
'GET'
,
url
:
'https://v3.football.api-sports.io/fixtures'
,
qs
:
{
team
:
teamID
},
qs
:
{
season
:
season
,
team
:
teamID
},
headers
:
{
'x-rapidapi-host'
:
'v3.football.api-sports.io'
,
'x-rapidapi-key'
:
'526fc70a2e8b315e9a960ac4b4764191'
...
...
@@ -105,13 +105,13 @@ function GetGameSchedule_teamname(teamID){
});
}
// 입력: 팀ID, 반환: 소속 선수
function
GetTeamMembers
(
teamID
){
// 입력: 팀ID,
시즌(*필수),
반환: 소속 선수
function
GetTeamMembers
(
season
,
teamID
){
var
request
=
require
(
"request"
);
var
options
=
{
method
:
'GET'
,
url
:
'https://v3.football.api-sports.io/players'
,
qs
:
{
team
:
teamID
},
qs
:
{
season
:
season
,
team
:
teamID
},
headers
:
{
'x-rapidapi-host'
:
'v3.football.api-sports.io'
,
'x-rapidapi-key'
:
'526fc70a2e8b315e9a960ac4b4764191'
...
...
@@ -124,12 +124,12 @@ function GetTeamMembers(teamID){
}
// 입력: 팀ID, 시즌*(필수), 반환: 팀 순위
function
GetTeamStanding
(
teamID
,
season
){
function
GetTeamStanding
(
season
,
teamID
){
var
request
=
require
(
"request"
);
var
options
=
{
method
:
'GET'
,
url
:
'https://v3.football.api-sports.io/standings'
,
qs
:
{
team
:
teamID
,
season
:
season
},
qs
:
{
season
:
season
,
team
:
teamID
},
headers
:
{
'x-rapidapi-host'
:
'v3.football.api-sports.io'
,
'x-rapidapi-key'
:
'526fc70a2e8b315e9a960ac4b4764191'
...
...
Please
register
or
login
to post a comment