async
(params, auths) => {
}
//See the API docs here: https://api.slack.com/methods/conversations.open
const config = {
method: "post",
url: `https://slack.com/api/conversations.open`,
headers: {
Authorization: `Bearer ${auths.slack.oauth_access_token}`,
"Content-Type": "application/json"
},
data: {
channel: params.channel,
users: typeof params.users == 'undefined' ? params.users : JSON.parse(params.users),
return_im: params.return_im || false
}
}
return await require("@pipedreamhq/platform").axios(this, config)