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
SyncMate by Assitro uses API keys for authentication. When you connect your SyncMate by Assitro account, Pipedream securely stores the keys so you can easily authenticate to SyncMate by Assitro APIs in both code and no-code steps.