Slack
Slack is a communications app that businesses can use to connect people to the information they need.
Authorization
To authenticate with OAuth 2.0, users will need to create and configure a Slack Application. When the user creates an app, they should be sure to enter Sapper's OAuth callback URL - Sapper- as a Callback URL.
Once the app has been created, the user will be provided with a Client Id, Client Secret, and Signing Secret. Take note of these keys:
Now, the user can configure OAuth 2.0 settings in Sapper. Create a new connection and enter the required fields.
Enter Client ID, Signing Secret, and Client Secret
Slack Connections
Slack OAuth 2.0
Input | Key | Description | Example |
Select Application | application | Select Slack application |
|
Connection Mode | Mode | Mention the mode of connection | Custom |
Connection type | connection type | Select the type of connection. |
|
REST Connection Type | rest connection type | Select the type of REST connection. |
|
Connection Name | name | Provide a name for the connection. |
|
Connection Description | description | Provide a description for the connection. |
|
Host Name | host | Provide a string value for the URL of user's Slack account. |
|
Grant Type | grant type | Provide the grant type - Authorization code, Password, Client Credentials. |
|
Actions
Send message to channel
Send message to channel | key: SendMessage
Input | Key | Description | Example |
---|---|---|---|
Channel Name | channelName | The name of the Slack channel. | general |
Message | message | The message to send the Slack channel. | Hello from Sapper! |
Get channels
Get channels | key: GetChannels
Get users by email
Get users by email| key: Getusersbyemail
Input | Key | Description | Example |
---|---|---|---|
EmailID | Provide the required email id | Smith@domain.com |
Send message to user
Send message to user | key: Sendmessagetouser
Input | Key | Description | Example |
---|---|---|---|
Users | UsersId | Provide the user id. | U018KEKKU71 |