diff --git a/homeworks/week4/hw4.js b/homeworks/week4/hw4.js index e69de29..bd7aeec 100644 --- a/homeworks/week4/hw4.js +++ b/homeworks/week4/hw4.js @@ -0,0 +1,15 @@ +const request = require('request'); + +const apiurl = 'https://api.twitch.tv/kraken/games/top'; +const clientID = Luyeom; + +request({ + method: 'GET', + url: apiurl, + headers: { + 'Client-ID': clientID, + 'Accept': 'application/vnd.twitchtv.v5+json', + } +}, function (error,response,body) { + console.log(body) +})