Twitch Identity Helper Functions
npm install @sliveapp/twitch-identimport { getChannels } from '@sliveapp/twitch-ident';
const channels = await getChannels(
{
broadcaster_id: '141981764',
},
{
accessToken: '...',
clientId: '...',
},
);import TwitchIdent from '@sliveapp/twitch-ident';
const twitchIdent = new TwitchIdent({
clientId: '...',
getAccessToken: async () => {
// ...
return '...',
},
});
const channels = await twitchIdent.getChannels({
id: ['...', '...'],
});