Array of users. The ordering of the users is preserved whenever a MPIM group is returned.
async
(params, auths) => {
}
//See the API docs here: https://api.slack.com/methods/mpim.open
const config = {
method: "post",
url: `https://slack.com/api/mpim.open`,
headers: {
Authorization: `Bearer ${auths.slack.oauth_access_token}`,
"Content-Type": "application/json"
},
data: {
users: JSON.parse(params.users)
}
}
return await require("@pipedreamhq/platform").axios(this, config)