I have some Web Service (for example, Twitter). This service already has users, so every user has account.
I want to provide ability for user to enter something like that in slack:
/tweet "Amazing tweet sent from Slack"
And this tweet should appear at Twitter's page of this user(say, John D. with id=1).
I read something about Slack apps, so highlevel overview is the following:
- I need to create a new Slack app
- I need to register slash command in this app and provide backend URL which will handle all requests from slack users (like https://twitter.com/slack-integration)
When user enters /tweet "Some tweet", then the following will be sent to https://twitter.com/slack-integration:
user_id=U2147483697&user_name=SlackUser&command=/tweet&text=Some tweet
So, user_id is Slack user id. And now I need a way to link it to John D. with id=1.
Any ideas, what should I do for that?