|Data Source Type||Web Accessible Resource|
|Authentication||OAuth Token Authentication|
|API Documentation||Slack API documentation|
Creating a data source using Slack
To create a data source using Slack, you need to accomplish the following five tasks:
- Start the data source creation process
- Authenticate with Slack (Log into Slack to create authentication token)
- Copy the authentication token from your Slack account to add to your query
- Enter the query into Klipfolio
Step 1: Start the data source creation process
To create a data source using Slack, go to the New Data Source page in Klipfolio and select the Web Accessible Resource option.
Step 2: Authenticate with Slack
Klipfolio connects to Slack using Slack's Web API. API authentication is achieved via a single-user bearer token. Log into Slack to generate a full-access token using the Create Token Button.
If you do not have permissions from your Slack admin for your full-access token, an error message - "Usage of the Slack API has been disabled by this team's admin" - will appear.
Step 3: Enter the query in Klipfolio
Refer to the Slack API documentation.
A great way to get started is to copy the query examples below into Klipfolio and fill in the blanks with your information. Then, try creating your own queries.
Here are a few sample queries to get you started:
To get a list of all the users
To get a list of Slack channels
To get the online status of the user
(where UXXXXXXX = User ID)
Complete the data source creation process
Now that you have crafted your query:
- At Data Format, select JSON
- At Method, select GET.
- Select Get Resource.
- If you are satisfied with the data returned, select Continue.