gatsby-source-slack-api
v1.0.1
Published
Source plugin for pulling users into Gatsby from the [Slack Web API](https://api.slack.com/methods/users.list).
Downloads
2
Maintainers
Readme
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
}
}
}
}
}