with AirOps and Airtop?
Emit new event when a new session is created in Airtop. See the documentation
Run a workflow of an app. See the sync documentation or async documentation
Create a new browser window in an active session. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
airops: {
type: "app",
app: "airops",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.airops.com/public_api/airops_apps/executions`,
headers: {
Authorization: `Bearer ${this.airops.$auth.workspace_api_key}`,
"accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
airtop: {
type: "app",
app: "airtop",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.airtop.ai/api/v1/sessions`,
headers: {
Authorization: `Bearer ${this.airtop.$auth.api_key}`,
},
params: {
offset: `0`,
limit: `10`,
},
})
},
})