1.0.1 • Published 5 years ago

gatsby-source-slack-api v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

gatsby-source-slack-users

Source plugin for pulling users into Gatsby from the Slack Web API.

:warning: State of this plugin

This plugin is not well tested and is mostly an experiment. Contributors are welcome.

Install


npm install --save gatsby-source-slack-users

How to use

// In your gatsby-config.js
plugins: {
  resolve: `gatsby-source-slack-users`,
  options: {
    accessToken: `YOUR_TOKEN_HERE`
  }
}

How to query

You can query nodes created from Slack Users like the following:

query {
  allSlackUsers {
    edges {
      node {
        id
        name
        profile {
          realName
          email
        }
      }
    }
  }
}