import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ideta: {
type: "app",
app: "ideta",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.ideta.io/cockpit/conversations`,
headers: {
Authorization: `Bearer ${this.ideta.$auth.oauth_access_token}`,
},
params: {
page: `1`,
},
})
},
})
ideta uses OAuth authentication. When you connect your ideta account, Pipedream will open a popup window where you can sign into ideta and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any ideta API.
Pipedream requests the following authorization scopes when you connect your account:
GEThttps://api.ideta.io/security/tokenaccept: application/jsonGEThttps://api.ideta.io/security/tokenaccept: application/json