views_push: Push a View

View source: R/views.R

views_pushR Documentation

Push a View

Description

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.

Usage

views_push(
  token = Sys.getenv("SLACK_TOKEN"),
  trigger_id,
  view,
  return_response = F
)

Arguments

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 view_object.

return_response

Whether or not to return the API call response as opposed to the response body. Defaults to FALSE (return response body)

Value

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.

See Also

https://api.slack.com/methods/views.push

Other Views: view_object(), views_open(), views_publish(), views_update()


samterfa/slackme documentation built on April 11, 2022, 3:29 a.m.