Showing
2 changed files
with
7 additions
and
3 deletions
... | @@ -49,3 +49,7 @@ Branch를 master + 3가지(API, Build_Data, Site)로 나눠서 작업 | ... | @@ -49,3 +49,7 @@ Branch를 master + 3가지(API, Build_Data, Site)로 나눠서 작업 |
49 | 3. 잘 동작하는 테스트용 ID : Stats(김대엽 선수), Rogue(이병렬 선수), rogue(일반인) | 49 | 3. 잘 동작하는 테스트용 ID : Stats(김대엽 선수), Rogue(이병렬 선수), rogue(일반인) |
50 | 50 | ||
51 | 4. 한글아이디 검색은 구현하지 않아서 불가능하다. | 51 | 4. 한글아이디 검색은 구현하지 않아서 불가능하다. |
52 | + | ||
53 | +<2018.12.20 추가> | ||
54 | +블리자드 API access token의 주기적인 랜덤교체로 router/main.js에서 각 request url 수정함. | ||
55 | +이후 access token의 교체가 또 발생하면 관리자의 access token을 발급받아야함. | ... | ... |
... | @@ -122,7 +122,7 @@ console.log("query"+enemyname); | ... | @@ -122,7 +122,7 @@ console.log("query"+enemyname); |
122 | //console.log(`${profileID}`);//테스트용 : profileID 출력 | 122 | //console.log(`${profileID}`);//테스트용 : profileID 출력 |
123 | 123 | ||
124 | var match_history_1="https://kr.api.blizzard.com/sc2/legacy/profile/3/1/"//매치히스토리 url 앞부분 | 124 | var match_history_1="https://kr.api.blizzard.com/sc2/legacy/profile/3/1/"//매치히스토리 url 앞부분 |
125 | - var match_history_2="/matches?access_token=US115TlhyMaYe3d3v4t6j17Umw1CfsvCIV"//매치히스토리 url 뒷부분 | 125 | + var match_history_2="/matches?access_token=USCbkLNyTur6a4bb27UdHIfTeH6wlA68HY"//매치히스토리 url 뒷부분 |
126 | var match_history_url=match_history_1+profileID+match_history_2;//매치히스토리 url 구성 | 126 | var match_history_url=match_history_1+profileID+match_history_2;//매치히스토리 url 구성 |
127 | console.log(match_history_url);//테스트용 : 매치히스토리 url 출력 | 127 | console.log(match_history_url);//테스트용 : 매치히스토리 url 출력 |
128 | 128 | ||
... | @@ -139,7 +139,7 @@ console.log("query"+enemyname); | ... | @@ -139,7 +139,7 @@ console.log("query"+enemyname); |
139 | });//each function 종료 | 139 | });//each function 종료 |
140 | 140 | ||
141 | var ladder_1="https://kr.api.blizzard.com/sc2/legacy/profile/3/1/" | 141 | var ladder_1="https://kr.api.blizzard.com/sc2/legacy/profile/3/1/" |
142 | - var ladder_2="/ladders?access_token=US115TlhyMaYe3d3v4t6j17Umw1CfsvCIV"; | 142 | + var ladder_2="/ladders?access_token=USCbkLNyTur6a4bb27UdHIfTeH6wlA68HY"; |
143 | var ladder_url=ladder_1+profileID+ladder_2; | 143 | var ladder_url=ladder_1+profileID+ladder_2; |
144 | console.log(ladder_url); | 144 | console.log(ladder_url); |
145 | request(ladder_url,(error,response,body)=>{//ladder request request 4 | 145 | request(ladder_url,(error,response,body)=>{//ladder request request 4 |
... | @@ -156,7 +156,7 @@ console.log("query"+enemyname); | ... | @@ -156,7 +156,7 @@ console.log("query"+enemyname); |
156 | //console.log(win_rate); | 156 | //console.log(win_rate); |
157 | 157 | ||
158 | var profile_1="https://kr.api.blizzard.com/sc2/legacy/profile/3/1/"; | 158 | var profile_1="https://kr.api.blizzard.com/sc2/legacy/profile/3/1/"; |
159 | - var profile_2="?access_token=US115TlhyMaYe3d3v4t6j17Umw1CfsvCIV"; | 159 | + var profile_2="?access_token=USCbkLNyTur6a4bb27UdHIfTeH6wlA68HY"; |
160 | var profile_url=profile_1+profileID+profile_2; | 160 | var profile_url=profile_1+profileID+profile_2; |
161 | console.log(profile_url); | 161 | console.log(profile_url); |
162 | request(profile_url,(error,response,body)=>{//profile request request 5 | 162 | request(profile_url,(error,response,body)=>{//profile request request 5 | ... | ... |
-
Please register or login to post a comment