import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
airmeet: {
type: "app",
app: "airmeet",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.airmeet.$auth.region}.airmeet.com/prod/airmeets`,
headers: {
"X-Airmeet-Access-Token": `${this.airmeet.$auth.oauth_access_token}`,
},
})
},
})
Airmeet uses OAuth authentication. When you connect your Airmeet account, Pipedream will open a popup window where you can sign into Airmeet and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Airmeet API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://{{custom_fields.region}}.airmeet.com/prod/auth
X-Airmeet-Access-Key: {{custom_fields.access_key}}
X-Airmeet-Secret-Key: {{custom_fields.secret_key}}
Content-Type: application/json