Slack - views.open request
@dylburger
code:
data:privatelast updated:1 year ago
today
Build integrations remarkably fast!
You're viewing a public workflow template.
Sign up to customize, add steps, modify code and more.
Join 250,000+ developers using the Pipedream platform
steps.
trigger
Cron Scheduler
Deploy to configure a custom schedule
This workflow runs on Pipedream's servers and is triggered on a custom schedule.
steps.
views_open
Open a view for a user.
auth
(auths.slack)
params
Trigger id

Exchange a trigger to post to the user.

12345.98765.abcd2358fdea
string ·params.trigger_id
View

The view payload. This must be a JSON-encoded string.

string ·params.view
code
async (params, auths) => {
1
2
3
4
5
6
7
8
9
10
11
12
13
14
}
15
const data = {
  trigger_id: params.trigger_id,
  view: params.view,
}
const config = {
  method: "post",
  url: `https://slack.com/api/views.open`,
  headers: {
    Authorization: `Bearer ${auths.slack.oauth_access_token}`,
  },
  data,
}
return await require("@pipedreamhq/platform").axios(this, config)
const data = {
  trigger_id: params.trigger_id,
  view: params.view,
}
const config = {
  method: "post",
  url: `https://slack.com/api/views.open`,
  headers: {
    Authorization: `Bearer ${auths.slack.oauth_access_token}`,
  },
  data,
}
return await require("@pipedreamhq/platform").axios(this, config)