Slack - Add Reminder
@sergio
code:
data:privatelast updated:4 years ago
today
Build integrations remarkably fast!
You're viewing a public workflow template.
Sign up to customize, add steps, modify code and more.
Join 1,000,000+ developers using the Pipedream platform
steps.
trigger
HTTP API
Deploy to generate unique URL
This workflow runs on Pipedream's servers and is triggered by HTTP / Webhook requests.
steps.
slack_add_reminder
Adds a reminder
auth
(auths.slack)
params
Text

The content of the reminder

 
eat a banana
string ·params.text
Time

When this reminder should happen: the Unix timestamp (up to five years from now), the number of seconds until the reminder (if within 24 hours), or a natural language description (Ex. "in 15 minutes," or "every Thursday")

 
1602288000
string ·params.time
Optional
code
async (params, auths) => {
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
}
17
//See the API docs at: https://api.slack.com/methods/reminders.add
const data = {
  text: params.text,
  time: params.time,
  user: params.user,
}
const config = {
  method: "post",
  url: `https://slack.com/api/reminders.add`,
  headers: {
    Authorization: `Bearer ${auths.slack.oauth_access_token}`,
  },
  params: data
}
return await require("@pipedreamhq/platform").axios(this, config)