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 04:29:21 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1db8627382de3055a940116eec49696f2829e1d4
1db86273
1 parent
1703b185
Jsonparsing Added
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
appfunctions.js
printjsonparsing.js
transmessage.js
appfunctions.js
View file @
1db8627
...
...
@@ -16,7 +16,7 @@ function GetGameSchedule(teamID, leagueID, season, eventObj){
});
}
// 입력: 리그ID, 반환: 팀 순위
// 입력: 리그ID,
시즌(*필수)
반환: 팀 순위
function
GetLeagueStanding
(
leagueID
,
season
){
var
request
=
require
(
"request"
);
var
options
=
{
...
...
@@ -42,13 +42,13 @@ function GetLeagueStanding(leagueID, season){
});
}
// 입력: 리그ID, 반환: (선수) 득점 순위
function
GetTopScorer
(
season
){
// 입력: 리그ID
(*필수), 시즌(*필수)
, 반환: (선수) 득점 순위
function
GetTopScorer
(
leagueID
,
season
){
var
request
=
require
(
"request"
);
var
options
=
{
method
:
'GET'
,
url
:
'https://v3.football.api-sports.io/players/topscorers'
,
qs
:
{
season
:
season
},
qs
:
{
league
:
leagueID
,
season
:
season
},
headers
:
{
'x-rapidapi-host'
:
'v3.football.api-sports.io'
,
'x-rapidapi-key'
:
'526fc70a2e8b315e9a960ac4b4764191'
...
...
@@ -60,13 +60,13 @@ function GetTopScorer(season){
});
}
// 입력: 리그ID, 반환: 도움 순위
function
GetTopAssist
(
season
){
// 입력: 리그ID
(*필수), 시즌(*필수)
, 반환: 도움 순위
function
GetTopAssist
(
leagueID
,
season
){
var
request
=
require
(
"request"
);
var
options
=
{
method
:
'GET'
,
url
:
'https://v3.football.api-sports.io/players/topassists'
,
qs
:
{
season
:
season
},
qs
:
{
league
:
leagueID
,
season
:
season
},
headers
:
{
'x-rapidapi-host'
:
'v3.football.api-sports.io'
,
'x-rapidapi-key'
:
'526fc70a2e8b315e9a960ac4b4764191'
...
...
@@ -132,4 +132,3 @@ function GetTeamStanding(teamID, season){
});
}
GetLeagueStanding
(
39
,
2021
);
...
...
printjsonparsing.js
0 → 100644
View file @
1db8627
This diff is collapsed. Click to expand it.
transmessage.js
View file @
1db8627
...
...
@@ -33,7 +33,7 @@ function transMsg(replyMsg){
console
.
log
(
transMessage
);
}
});
}
}
var
replyMsg
=
"선수, 시즌, 순위, 리그, 손흥민, 네이마르, 1등"
...
...
Please
register
or
login
to post a comment