Communications platform as a service
The 8x8 (Wavecell) API offers robust capabilities for voice and SMS messaging services, enabling you to engage customers through automated communications. Whether it's sending out timely notifications, verifying user identities with OTPs, or streamlining customer support processes, the API provides a versatile platform for enhancing your communication workflows. With Pipedream, you can harness this potential by crafting serverless integrations that trigger 8x8 actions based on events from countless other apps, or even custom logic.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
wavecell: {
type: "app",
app: "wavecell",
}
},
async run({steps, $}) {
const data = {
"destination": ``,
"text": ``,
"source": ``,
}
return await axios($, {
method: "post",
url: `https://api.wavecell.com/sms/v1/${this.wavecell.$auth.subAccountId}/single`,
headers: {
Authorization: `Bearer ${this.wavecell.$auth.api_key}`,
},
data,
})
},
})
The Filter API in Pipedream allows for real-time data processing within workflows. It's designed to evaluate data against predefined conditions, enabling workflows to branch or perform specific actions based on those conditions. This API is instrumental in creating efficient, targeted automations that respond dynamically to diverse datasets. Using the Filter API, you can refine streams of data, ensuring that subsequent steps in your Pipedream workflow only execute when the data meets your specified criteria. This cuts down on unnecessary processing and facilitates the creation of more intelligent, context-aware systems.
export default defineComponent({
async run({ steps, $ }) {
let condition = false
if (condition == false) {
$.flow.exit("Ending workflow early because the condition is false")
} else {
$.export("$summary", "Continuing workflow, since condition for ending was not met.")
}
},
})