forked from BlakeWilliams/Elixir-Slack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'acc-fix-rtm-connect' of github.com:acconrad/Elixir-Slac…
…k into acc-fix-rtm-connect
- Loading branch information
Showing
19 changed files
with
297 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ | |
/doc | ||
erl_crash.dump | ||
*.ez | ||
|
||
.idea | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Token Generation Instructions | ||
|
||
1. Visit https://api.slack.com/apps | ||
2. If you have already created your app then click on it, otherwise create a new app. | ||
3. Click on "Add features and functionality" to expand that section | ||
4. Click on "Permissions" | ||
![Step 4](./assets/access-token1.png "Step 4 Screenshot") | ||
5. Copy the "OAuth Access Token" | ||
![Step 5](./assets/access-token2.png "Step 5 Screenshot") | ||
|
||
Note: The Elixir Slack library only uses the "OAuth Access Token" or "Bot User OAuth Access Token", it does not use the "Client ID", "Client Secret", "Signing Secret", or "Verification Token" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"desc": "Retrieve a thread of messages posted to a channel.", | ||
|
||
"args": { | ||
"channel": { | ||
"type" : "channel", | ||
"required" : true, | ||
"desc" : "Channel to fetch thread from" | ||
}, | ||
|
||
"thread_ts": { | ||
"required" : true, | ||
"desc" : "Unique identifier of a thread's parent message." | ||
} | ||
}, | ||
|
||
"errors": { | ||
"channel_not_found" : "Value passed for `channel` was invalid.", | ||
"thread_not_found": "Value for thread_ts was missing or invalid." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"desc": "Sends an ephemeral message to a channel.", | ||
|
||
"args": { | ||
"channel": { | ||
"type" : "channel", | ||
"required" : true, | ||
"desc" : "Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name. See [below](#channels) for more details." | ||
}, | ||
"text": { | ||
"required" : true, | ||
"example" : "Hello world", | ||
"desc" : "Text of the message to send. See below for an explanation of [formatting](#formatting)." | ||
}, | ||
"user": { | ||
"type" : "user", | ||
"required" : true, | ||
"desc" : "`id` of the user who will receive the ephemeral message. The user should be in the channel specified by the `channel` argument." | ||
}, | ||
"parse": { | ||
"example" : "full", | ||
"desc" : "Change how messages are treated. Defaults to `none`. See [below](#formatting)." | ||
}, | ||
"link_names": { | ||
"example" : "1", | ||
"desc" : "Find and link channel names and usernames." | ||
}, | ||
"attachments": { | ||
"example" : "[{\"pretext\": \"pre-hello\", \"text\": \"text-world\"}]", | ||
"desc" : "Structured message attachments." | ||
}, | ||
"as_user": { | ||
"required" : false, | ||
"example" : "true", | ||
"desc" : "Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See [authorship](#authorship) below." | ||
} | ||
}, | ||
|
||
"errors": { | ||
|
||
"channel_not_found" : "Value passed for `channel` was invalid.", | ||
"user_not_in_channel" : "Cannot post user messages to a channel they are not in.", | ||
"is_archived" : "Channel has been archived.", | ||
"msg_too_long" : "Message text is too long", | ||
"no_text" : "No message text provided", | ||
"rate_limited" : "Application has posted too many messages, [read the Rate Limit documentation](/docs/rate-limits) for more information" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"desc": "Retrieve a thread of messages posted to a private channel.", | ||
|
||
"args": { | ||
"channel": { | ||
"type" : "channel", | ||
"required" : true, | ||
"desc" : "Private channel to fetch thread from" | ||
}, | ||
|
||
"thread_ts": { | ||
"required" : true, | ||
"desc" : "Unique identifier of a thread's parent message." | ||
} | ||
}, | ||
|
||
"errors": { | ||
"channel_not_found" : "Value passed for `channel` was invalid.", | ||
"thread_not_found": "Value for thread_ts was missing or invalid." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"desc": "Retrieve a thread of messages posted to a direct message conversation.", | ||
|
||
"args": { | ||
"channel": { | ||
"type" : "channel", | ||
"required" : true, | ||
"desc" : "Direct message channel to fetch thread from" | ||
}, | ||
|
||
"thread_ts": { | ||
"required" : true, | ||
"desc" : "Unique identifier of a thread's parent message." | ||
} | ||
}, | ||
|
||
"errors": { | ||
"channel_not_found" : "Value passed for `channel` was invalid.", | ||
"thread_not_found": "Value for thread_ts was missing or invalid." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"desc": "Retrieve a single user by looking them up by their registered email address. Requires `users:read.email`.", | ||
|
||
"args": { | ||
"email": { | ||
"type" : "string", | ||
"required" : true, | ||
"desc" : "User's email address" | ||
} | ||
}, | ||
|
||
"errors": { | ||
"user_not_found" : "Value passed for `user` was invalid.", | ||
"missing_scope" : "The token used is not granted the specific scope permissions required to complete this request. Need: `users:read.email`." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.