Hi, i dev actually my bot (discord/twitch) but i block on a request:
strong textclient.api({
url: “https://api.twitch.tv/kraken/channels/MY_CHANNEL_ID/follows?api_version=5”,
method: “GET”,
headers: {
“Client-ID”: “CLIENT_KEY”
}
}, function(err, res, body) {
console.log(body);
});
That code return =>
{ _total: 240,
_links:
{ self: ‘https://api.twitch.tv/kraken/channels/zehnovh/follows?channel=zehnovh&direction=desc&limit=1’,
next: ‘https://api.twitch.tv/kraken/channels/zehnovh/follows?channel=zehnovh&cursor=1542165100434341275&direction=desc&limit=1’ },
_cursor: ‘1542165100434341275’,
follows:
[ { created_at: ‘2018-11-14T03:11:40Z’,
_links: [Object],
notifications: true,
user: [Object] } ] }
How i can var my user: [Object] ? Thanks alot.