Nice , It’s means this call can be call 800 time per minutes for each user beacause I use Client ID and user token ?
const fetch = require('node-fetch');
module.exports = function(req) {
//Init constant
const url = req[0];
const twitch_access_token = req[1];
return new Promise(resolve => {
//Fetch twitch API
fetch(url, {
method: 'GET',
headers: {
'Client-ID': process.env.CLIENT_ID,
'Authorization': 'Bearer ' + twitch_access_token
}
})
.then(res => res.json())
.then(function (res) {
//Return result as promise
resolve(res);
})
});
}