auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps, params, auths) => {
}
const config = {
url: `https://oauth.reddit.com/r/${params.subreddit}/new`,
params: {
after: params.after,
before: params.before,
count: params.count,
include_categories: params.include_categories,
limit: params.limit,
show: params.show,
sr_detail: params.sr_detail,
},
headers: {
Authorization: `Bearer ${auths.reddit.oauth_access_token}`,
"User-Agent": "pipedream:v0.0.1 (by /r/pipedream)",
},
}
return await require("@pipedreamhq/platform").axios(this, config)