views_publish | R Documentation |
Create or update the view that comprises an app's Home tab for a specific user.
views_publish( token = Sys.getenv("SLACK_TOKEN"), user_id, view, hash = 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. |
user_id |
id of the user you want publish a view to. |
view |
A |
hash |
A string that represents view state to protect against possible race conditions. |
return_response |
Whether or not to return the API call response as opposed to the response body. Defaults to FALSE (return response body) |
Assuming your view object was properly formatted, valid, and the user_id was viable, you will receive a success response.
https://api.slack.com/methods/views.publish
Other Views:
view_object()
,
views_open()
,
views_push()
,
views_update()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.