Skip to content

TobyRoth/MySlack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySlack

MySlack is an application that integrates to Slack services to sends messages and get messages without using the Slack App.
MySlack is running on Heroku server: https://slack-me.herokuapp.com/

MySlack includes the following APIs:

Send Message
Get Messages
Search Mesage
Get Channels

So how to use MySlack?

Let's get started!

If you don't have a slack account yet, create one here.
Now in your slack account, if you don't have a slack app create one here.
To use all MySlack APIs you need to give a few scopes to slack app.
to giva all needed scopes go to OAuth & Permissions of your app.
the scopes you need:

Bot Token Scopes:

chat:write
channels:history
channels:read
groups:history
groups:read
im:history
im:read
mpim:history
mpim:read
search:read

User Token Scopes:

chat:write
channels:history
channels:read
groups:history
groups:read
im:history
im:read
mpim:history
mpim:read
search:read

Now that you have all scopes you need,and the app is installed keep the OAuth Access Token.

To use the app

For convenient and easy communication We suggest to use Postman. if you don't have it yet, install here

APIs

Send Message:

send a message to a specific channel in one of your slack accounts. the API requires a token to a slack app , a channel name and a message to send.

Method:POST

Required Arguments:

token : xoxp-your-token.
channel : channel name (if you don't know the name you can use Get Channels )
msg : your message

Get Messages:

returns all messages from a specific channel in one of your slack accounts the API requires a token to a slack app and a channel id

Method:GET

Required Arguments:

token : xoxp-your-token.
channel : channel id (if you don't know the id you can use Get Channels )

Search Message:

search for a specific message in all channels. the API returns all messages that contains the message you serched. the api requires a token to a slack app and a message.

Method:GET

Required Arguments :

token : xoxp-your-token.
msg : the-message-you're-searching

Get Channels:

the API returns a list of all Workspace's chnnels name and id. the API requires a token to a slack app.

Method:GET

Required Arguments :

token : xoxp-your-token.

Good Luck and enjoy!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published