Socket
Socket
Sign inDemoInstall

gatsby-source-twitch

Package Overview
Dependencies
7
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gatsby-source-twitch

Gatsby source to fetch data from the Twitch API


Version published
Weekly downloads
1
Maintainers
1
Install size
3.22 MB
Created
Weekly downloads
 

Readme

Source

gatsby-source-twitch

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/

Install

npm install --save gatsby-source-twitch

gatsby-config.js

plugins: [
  {
    resolve: `gatsby-source-twitch`,
    options: {
      userID: '<<Twitch UserID eg. 6058227 >>',
      clientID: '<< Add your Twitch client_id here>>'
    },
  },
  ...
]

Examples of how to query:

Get all the videos:

{
  allTwitchvideo {
    edges {
      node {
        title
        url
        type
      }
    }
  }
}

Get the user/channel info:

{
  twitchuser {
    display_name
    description
    profile_image_url
  }
}

Keywords

FAQs

Last updated on 14 Jul 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc