-
Notifications
You must be signed in to change notification settings - Fork 0
SPIKE: Research Ability to Automatically Set Clear Status for Users in Slack
Adam Mac edited this page May 10, 2019
·
2 revisions
- Setting up an app for your Slack workspace
- Generate an OAuth token for the user and have them grant permission for the app to make changes to their profile
- Issue the following API call:
URL: POST
https://sharpnotions.slack.com/api/users.profile.set
Authorization: Bearer [User's OAuth Token]
Payload:
{
"profile": {
"status_text": "Great Success",
"status_emoji": ":face_palm:",
"status_expiration": 0
}
}
We'll need some place to facilitate the ability for the user to go to the OAuth process so we can obtain their token and their permission. Presumably, we'll also need a place in the database to store the resulting OAuth token and a way for them to re-authorize the application in the event that their token expires.