View source: R/conversations.R
conversations_open | R Documentation |
Opens or resumes a direct message or multi-person direct message.
conversations_open( token = Sys.getenv("SLACK_TOKEN"), channel = NULL, return_im = NULL, users = NULL, return_response = F )
token |
Authentication token bearing required scopes. Tokens should be passed as an HTTP Authorization header or alternatively, as a POST parameter. |
channel |
Resume a conversation by supplying an im or mpim's ID. Or provide the users field instead. |
return_im |
Boolean, indicates you want the full IM channel definition in the response. |
users |
Comma separated lists of users. If only one user is included, this creates a 1:1 DM. The ordering of the users is preserved whenever a multi-person direct message is returned. Supply a channel when not supplying users. |
This method supports application/json via HTTP POST. Present your token in your request's Authorization header. Learn more.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.