with SignalWire and BotPenguin?
Creates a video conference on SignalWire. See the documentation
Adds a new WhatsApp contact to your BotPenguin account. See the documentation
Validates a given phone number. Can optionally include carrier and caller ID information. See the documentation
Updates custom attributes for a specific contact in your BotPenguin account.
The SignalWire API provides powerful communication capabilities, allowing developers to send and receive text messages, make voice calls, and manage telephony features programmatically. On Pipedream, you can leverage these functionalities to create serverless workflows that integrate with numerous apps and services. With Pipedream's easy-to-use interface and robust connectivity options, you can build automated processes that trigger from various events and perform actions using SignalWire without managing infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
signalwire: {
type: "app",
app: "signalwire",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.signalwire.$auth.domain}.signalwire.com/api/relay/rest/number_groups`,
headers: {
"Accept": `application/json`,
},
auth: {
username: `${this.signalwire.$auth.project_id}`,
password: `${this.signalwire.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
botpenguin: {
type: "app",
app: "botpenguin",
}
},
async run({steps, $}) {
const data = [
{
"profile": {
"userDetails": {
"name": "BPTest",
"contact": {
"email": "test@example.com",
"phone": {
"number": "90123456789",
"prefix": "91"
}
},
"tags": [],
"attributes": [],
"userProvidedName": "BPTest"
}
}
}
]
return await axios($, {
method: "post",
url: `https://api.v7.botpenguin.com/inbox/users/import`,
headers: {
Authorization: `Bearer ${this.botpenguin.$auth.access_token}`,
"botid": `${this.botpenguin.$auth.bot_id}`,
"authtype": `Key`,
},
data,
})
},
})