with LiveSwitch and LiveKit?
Emit new event for LiveKit room activities via webhook. See the documentation
Create a new ingress from url in LiveKit. See the documentation
Create a conversation in LiveSwitch See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
liveswitch: {
type: "app",
app: "liveswitch",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://public-api.production.liveswitch.com/v1/me`,
headers: {
Authorization: `Bearer ${this.liveswitch.$auth.oauth_access_token}`,
},
})
},
})
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();
},
})