A gatsby source plugin for fetching all the videos and channel info for a Twitch user ID.
Learn more about Gatsby plugins and how to use them here: https://www.gatsbyjs.org/docs/plugins/
npm install --save gatsby-source-twitch
plugins: [
{
resolve: `gatsby-source-twitch`,
options: {
userID: '<<Twitch UserID eg. 6058227 >>',
clientID: '<< Add your Twitch client_id here>>'
},
},
...
]
Get all the videos:
{
allTwitchvideo {
edges {
node {
title
url
type
}
}
}
}
Get the user/channel info:
{
twitchuser {
display_name
description
profile_image_url
}
}