The message to be sent.
async
(params, auths) => {
}
//See the API docs here: https://marketplace.zoom.us/docs/api-reference/zoom-api/chat-messages/sendachatmessage
const config = {
method: "post",
url: `https://api.zoom.us/v2/chat/users/me/messages`,
data: {
message: params.message,
to_contact: params.to_contact,
to_channel: params.to_channel
},
headers: {
Authorization: `Bearer ${auths.zoom_admin.oauth_access_token}`
}
}
return await require("@pipedreamhq/platform").axios(this, config)