with VideoAsk and Instant?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
videoask: {
type: "app",
app: "videoask",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.videoask.com/me`,
headers: {
"Authorization": `Bearer ${this.videoask.$auth.api_token}`,
},
})
},
})
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({ _: {} });
},
})