with Airtop and Formatting?
Emit new event when a new session is created in Airtop. See the documentation
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`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})