views_open: Open a View for a User

View source: R/views.R

views_openR Documentation

Open a View for a User

Description

Open a modal with a user by exchanging a trigger_id received from another interaction. See the modals documentation to learn how to obtain triggers from interactive components.

Usage

views_open(
  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

A view_object with status or an error message.

See Also

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

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


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