import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
syncmate_by_assitro: {
type: "app",
app: "syncmate_by_assitro",
}
},
async run({steps, $}) {
const data = {
"msgs": [
{
"number": 14159371662, //Your whatsapp number with country code
"message": "This is a test via Pipedream and SyncMate by Assitro integration."
}
]
}
return await axios($, {
method: "post",
url: `https://app.assistro.co/api/v1/wapushplus/single/message`,
headers: {
Authorization: `Bearer ${this.syncmate_by_assitro.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})
Send multiple WhatsApp messages in bulk. See the documentation
Send a single WhatsApp message using SyncMate by Assistro. See the documentation
WhatsApp Alerts and Notifications by SyncMate uses API keys for authentication. When you connect your WhatsApp Alerts and Notifications by SyncMate account, Pipedream securely stores the keys so you can easily authenticate to WhatsApp Alerts and Notifications by SyncMate APIs in both code and no-code steps.