How to gain user permission and create slack channel in ruby -


i want give user updates app creating channel in team. want 2 thing:

  1. create channel (e.g #coolapp) user (in slack team)
  2. 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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -