You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of February the package "request" has been deprecated and will no longer be supported.
I would recommend switching to "node-fetch" which is more likely to be maintained and is, ultimately, a cleaner method for making the request.
const fetch = require('node-fetch');
fetch('https://api.twitch.tv/helix/users', options)
.then( response => response.json())
.then( data => {
// magic happens with the parsed response JSON
done();
});
It may seem a little silly to create an issue on something intended to be a sample but deprecated packages are not returned in search results on npmjs.com which could make searching for documentation difficult for those adapting the sample.
The text was updated successfully, but these errors were encountered:
As of February the package "request" has been deprecated and will no longer be supported.
I would recommend switching to "node-fetch" which is more likely to be maintained and is, ultimately, a cleaner method for making the request.
It may seem a little silly to create an issue on something intended to be a sample but deprecated packages are not returned in search results on npmjs.com which could make searching for documentation difficult for those adapting the sample.
The text was updated successfully, but these errors were encountered: