with 1S2U and Salesloft?
The 1S2U API provides SMS messaging functionality, enabling you to send texts globally from your Pipedream workflows. With this integration, you can automate notifications, alerts, and communication with users or staff, streamlining your outreach efforts. Pipedream’s serverless platform allows you to create complex workflows, triggering SMS sends based on events from various apps or custom logic.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ones2u: {
type: "app",
app: "ones2u",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.1s2u.io/checkbalance`,
params: {
user: `${this.ones2u.$auth.username}`,
pass: `${this.ones2u.$auth.password}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
salesloft: {
type: "app",
app: "salesloft",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.salesloft.com/v2/me`,
headers: {
Authorization: `Bearer ${this.salesloft.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})