test.js
681 Bytes
var request = require("request");
let option={
url:"https://kr.api.riotgames.com/tft/summoner/v1/summoners/mPZ-K52nW3DRwr5MWcJ_ogUB1zE94Diwa-Voxxn8Df58MYk",
method: 'GET',
headers:{
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36",
"Accept-Language": "ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7",
"Accept-Charset": "application/x-www-form-urlencoded; charset=UTF-8",
"Origin": "https://developer.riotgames.com",
"X-Riot-Token": "RGAPI-78e43419-9016-45e3-8300-1e5febc8ef54"}
};
request(option,function(err,res,body)
{
console.log(req.body.puuid)
});