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-08 21:55:21 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a849fb6eadda170f9bf2eeae4fce6ba53ffe4474
a849fb6e
1 parent
277786be
Update appfunctions.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
0 deletions
appfunctions.js
appfunctions.js
View file @
a849fb6
// 입력: 팀ID, 리그ID, 시즌 입력, 반환: 경기일정
function
GetGameSchedule
(
teamID
,
leagueID
,
season
,
eventObj
){
var
request
=
require
(
"request"
);
var
options
=
{
...
...
@@ -13,4 +14,58 @@ function GetGameSchedule(teamID, leagueID, season, eventObj){
if
(
error
)
throw
new
Error
(
error
);
console
.
log
(
body
);
});
}
// 입력: 리그ID, 반환: 팀 순위
function
GetTeamStanding
(
season
){
var
request
=
require
(
"request"
);
var
options
=
{
method
:
'GET'
,
url
:
'https://v3.football.api-sports.io/standings'
,
qs
:
{
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
);
});
}
// 입력: 리그ID, 반환: (선수) 득점 순위
function
GetTopScorer
(
season
){
var
request
=
require
(
"request"
);
var
options
=
{
method
:
'GET'
,
url
:
'https://v3.football.api-sports.io/players/topscorers'
,
qs
:
{
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
);
});
}
// 입력: 리그ID, 반환: 도움 순위
function
GetTopAssist
(
season
){
var
request
=
require
(
"request"
);
var
options
=
{
method
:
'GET'
,
url
:
'https://v3.football.api-sports.io/players/topassists'
,
qs
:
{
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
...
...
Please
register
or
login
to post a comment