with Imagior and Browserbase?
Emit new event when a new session is created. See the documentation
Generates a unique and robust image using a provided template. See the documentation
Creates a new browser session with specified settings. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
imagior: {
type: "app",
app: "imagior",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.imagior.com/user/account`,
headers: {
Authorization: `Bearer ${this.imagior.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
browserbase: {
type: "app",
app: "browserbase",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.browserbase.com/v1/projects`,
headers: {
"x-bb-api-key": `${this.browserbase.$auth.api_key}`,
},
})
},
})