with LiveKit and OpenPhone?
Emit new event when a call recording has finished.
Emit new event when an incoming call is completed, including calls not picked up or voicemails left.
Emit new event for LiveKit room activities via webhook. See the documentation
Emit new event when an outgoing call has ended.
Create a new ingress from url in LiveKit. See the documentation
Retrieve the list of phone numbers and users associated with your OpenPhone workspace. See the documentation
import { RoomServiceClient } from 'livekit-server-sdk';
export default defineComponent({
props: {
livekit: {
type: "app",
app: "livekit",
}
},
async run({steps, $}) {
const svc = new RoomServiceClient(
this.livekit.$auth.project_url,
this.livekit.$auth.api_key,
this.livekit.$auth.secret_key);
return await svc.listRooms();
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
openphone: {
type: "app",
app: "openphone",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.openphone.com/v1/phone-numbers`,
headers: {
"Authorization": `${this.openphone.$auth.api_key}`,
},
})
},
})