Channel to invite user to.
User to invite to channel.
async
(params, auths) => {
}
//See the API docs here: https://api.slack.com/methods/channels.invite
const data = {
channel: params.channel,
user: params.user,
}
const config = {
method: "post",
url: `https://slack.com/api/channels.invite`,
headers: {
Authorization: `Bearer ${auths.slack.oauth_access_token}`,
},
data,
}
return await require("@pipedreamhq/platform").axios(this, config)