Showing
1 changed file
with
4 additions
and
2 deletions
1 | +// .env파일을 사용하지 않는 경우 주석처리 | ||
1 | require("dotenv").config({path: ".env"}); | 2 | require("dotenv").config({path: ".env"}); |
2 | -var key=process.env.API_KEY; | 3 | +// var key="ENTER YOUR API KEY" |
4 | +const key=process.env.API_KEY; | ||
3 | var request=require('request'); | 5 | var request=require('request'); |
4 | var userId=[]; | 6 | var userId=[]; |
5 | var username=[]; | 7 | var username=[]; |
... | @@ -34,7 +36,7 @@ exports.result_get = function (req, res) { | ... | @@ -34,7 +36,7 @@ exports.result_get = function (req, res) { |
34 | 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"; | 36 | 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"; |
35 | userId.splice(0,1); | 37 | userId.splice(0,1); |
36 | var options = { | 38 | var options = { |
37 | - //개인전만 검색하는 것임 | 39 | + //개인전(그랑프리, 무한 부스터 등) 검색 |
38 | url: api_url, | 40 | url: api_url, |
39 | headers: { Authorization: key } | 41 | headers: { Authorization: key } |
40 | }; | 42 | }; | ... | ... |
-
Please register or login to post a comment