Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김명주
/
kartrider
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
김명주
2021-12-05 16:11:06 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
43061014900b77fde3802e0738cc5c1ad58fe3d2
43061014
1 parent
a9ed2bbe
Change variable type
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
search.js
search.js
View file @
4306101
// .env파일을 사용하지 않는 경우 주석처리
require
(
"dotenv"
).
config
({
path
:
".env"
});
var
key
=
process
.
env
.
API_KEY
;
// var key="ENTER YOUR API KEY"
const
key
=
process
.
env
.
API_KEY
;
var
request
=
require
(
'request'
);
var
userId
=
[];
var
username
=
[];
...
...
@@ -34,7 +36,7 @@ exports.result_get = function (req, res) {
var
api_url
=
"https://api.nexon.co.kr/kart/v1.0/users/"
+
userId
[
0
]
+
"/matches?start_date=&end_date= &offset=0&limit=10&match_types=7b9f0fd5377c38514dbb78ebe63ac6c3b81009d5a31dd569d1cff8f005aa881a"
;
userId
.
splice
(
0
,
1
);
var
options
=
{
//개인전
만 검색하는 것임
//개인전
(그랑프리, 무한 부스터 등) 검색
url
:
api_url
,
headers
:
{
Authorization
:
key
}
};
...
...
Please
register
or
login
to post a comment