views_push | R Documentation |
Push a new view onto the existing view stack by passing a view object and a valid trigger_id generated from an interaction within the existing modal. The pushed view is added to the top of the stack, so the user will go back to the previous view after they complete or cancel the pushed view. After a modal is opened, the app is limited to pushing 2 additional views. Read the modals documentation to learn more about the lifecycle and intricacies of views.
views_push( token = Sys.getenv("SLACK_TOKEN"), trigger_id, view, return_response = F )
token |
Authentication token bearing required scopes. Tokens should be passed as an HTTP Authorization header or alternatively, as a POST parameter. |
trigger_id |
Exchange a trigger to post to the user. |
view |
A |
return_response |
Whether or not to return the API call response as opposed to the response body. Defaults to FALSE (return response body) |
If you pass a valid view object along with a valid trigger_id, you'll receive a success response with the view object that was pushed to the stack.
https://api.slack.com/methods/views.push
Other Views:
view_object()
,
views_open()
,
views_publish()
,
views_update()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.