with Mobivate and SMS Messages?
The Mobivate API on Pipedream allows you to engage with SMS services for sending messages, checking delivery status, and managing contacts. It's a powerful tool for automating communication-based workflows, such as notifications, marketing campaigns, and customer engagement. With Pipedream, you can rapidly integrate Mobivate into serverless workflows with other apps and services, leveraging its capabilities without needing to manage infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mobivate: {
type: "app",
app: "mobivate",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.mobivatebulksms.com/auth/test`,
params: {
api_key: `${this.mobivate.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sms_messages: {
type: "app",
app: "sms_messages",
}
},
async run({steps, $}) {
const data = {
"sms":
{
"user":`${this.sms_messages.$auth.username}`,
"dst":
{
"num":
[
"++3460000000"
]
},
"txt":"Hello world!"
}
}
return await axios($, {
method: "post",
url: `https://api.lleida.net/sms/v2/`,
headers: {
"content-type": `application/json; charset=utf-8`,
"accept": `application/json`,
"authorization": `x-api-key ${this.sms_messages.$auth.api_key}`,
},
data,
})
},
})