How to gain user permission and create slack channel in ruby -
i want give user updates app creating channel in team. want 2 thing:
- create channel (e.g #coolapp) user (in slack team)
- send update app coolapp channel
thanks stoping by.
to create channel need (at minimum) channels:write
scope (https://api.slack.com/docs/oauth-scopes) doubt client grant. best , easiest thing create custom integration incoming-webhook
scope allows post messages channel selected user (not you). customer can install custom integration (app) using slack button , if set correctly incoming-webhook; when install app, select channel messages post to.
this explained in more detail here.
posting messages channel via webhook simple. docs:
curl -x post \ --data-urlencode 'payload={"text":"this line of text.\nand one."}' \ https://hooks.slack.com/services/t00000000/b00000000/xxxxxxxxxxxxxxxxxxxxxxxx
Comments
Post a Comment