Skip to content
Damien edited this page Jun 5, 2016 · 1 revision
let slack: Provider = .Slack(
    clientID: "***",
    clientSecret: "***"
    redirectURL: "foo://callback"
)
Token
{
    "access_token": "xoxp-23984754863-2348975623103",
    "scope": "read"
}
Scopes
Oauth Scope Associated Methods
users:read
channels:write
channels:history
channels:read
chat:write:bot
chat:write:user
dnd:write
dnd:read
emoji:read
files:write:user
files:read
groups:write
groups:history
groups:read
im:write
im:history
im:read
mpim:write
mpim:history
mpim:read
pins:write
pins:read
reactions:write
reactions:read
reminders:write
reminders:read
search:read
stars:write
stars:read
team:read
usergroups:write
usergroups:read
identity.basic
users:write
Authorization Request Parameters
  • client_id - issued when you created your app (required)
  • scope - permissions to request (see below) (required)
  • redirect_uri - URL to redirect back to (see below) (optional)
  • state - unique string to be passed back upon completion (optional)
  • team - Slack team ID to attempt to restrict to (optional)
Token Request Parameters
  • client_id - issued when you created your app (required)
  • client_secret - issued when you created your app (required)
  • code - a temporary authorization code (required)
  • redirect_uri - must match the originally submitted URI (if one was sent)
Clone this wiki locally