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
박찬수
2022-06-08 23:15:52 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
77e0628ee7c03956773205f374175b3653d686d0
77e0628e
1 parent
5ce11659
commit all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
16 deletions
appfunctions.js
file02_sync.txt
file_write.js
appfunctions.js
deleted
100644 → 0
View file @
5ce1165
function
GetGameSchedule
(
teamID
,
leagueID
,
season
,
eventObj
){
var
request
=
require
(
"request"
);
var
options
=
{
method
:
'GET'
,
url
:
'https://v3.football.api-sports.io/fixtures'
,
qs
:
{
team
:
teamID
,
league
:
leagueID
,
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
file02_sync.txt
0 → 100644
View file @
77e0628
hello
\ No newline at end of file
file_write.js
0 → 100644
View file @
77e0628
var
fs
=
require
(
'fs'
);
fs
.
readFile
(
'getids.js'
,
'utf-8'
,
function
(
error
,
data
)
{
console
.
log
(
'01 readAsync: %s'
,
data
);
if
(
error
){
try
{
fs
.
writeFileSync
(
'file02_sync.txt'
,
"hello"
,
'utf-8'
);
console
.
log
(
'02 WRITE DONE!'
);
}
catch
(
e
){
console
.
log
(
e
);
}
}
});
\ No newline at end of file
Please
register
or
login
to post a comment