with Placetel and Rize?
The Placetel API lets you integrate a variety of telephony functions directly into Pipedream workflows. By connecting Placetel to Pipedream, you can automate processes like sending SMS messages, managing calls, or updating contact information programmatically. Pipedream's serverless platform enables these integrations to run on triggers such as incoming webhooks, scheduled times, or actions from other apps, orchestrating complex tasks in a simplified manner.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
placetel: {
type: "app",
app: "placetel",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.placetel.de/v2/me`,
headers: {
Authorization: `Bearer ${this.placetel.$auth.api_key}`,
"content-type": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rize: {
type: "app",
app: "rize",
}
},
async run({steps, $}) {
const data = {
"query": `query CurrentUser {
currentUser {
email
}
}`,
}
return await axios($, {
method: "post",
url: `https://api.rize.io/api/v1/graphql`,
headers: {
Authorization: `Bearer ${this.rize.$auth.api_key}`,
},
data,
})
},
})