with Instant and Voicemaker?
import { init, id } from '@instantdb/admin';
export default defineComponent({
props: {
instant: {
type: "app",
app: "instant",
}
},
async run({steps, $}) {
const db = init({
appId: this.instant.$auth.app_id,
adminToken: this.instant.$auth.admin_token,
});
return await db.query({ _: {} });
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
voicemaker: {
type: "app",
app: "voicemaker",
}
},
async run({steps, $}) {
const data = {"language": "en-US" }
return await axios($, {
method: "post",
url: `https://developer.voicemaker.in/voice/list`,
headers: {
Authorization: `Bearer ${this.voicemaker.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})