import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
intelliflo_office: {
type: "app",
app: "intelliflo_office",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.${this.intelliflo_office.$auth.region_code}.intelliflo.net/v2/clients`,
headers: {
Authorization: `Bearer ${this.intelliflo_office.$auth.oauth_access_token}`,
"x-api-key": `${this.intelliflo_office.$auth.api_key}`,
},
})
},
})
intelliflo office uses OAuth authentication. When you connect your intelliflo office account, Pipedream will open a popup window where you can sign into intelliflo office and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any intelliflo office API.
Pipedream requests the following authorization scopes when you connect your account:
profile
client_identification_data
POST
https://identity.{{custom_fields.region_code}}.intelliflo.net/core/connect/token
content-type: application/x-www-form-urlencoded
accept: application/json
grant_type=tenant_client_credentials
&
scope={{oauth.space_separated_scopes}}
&
tenant_id={{custom_fields.tenant_id}}
POST
https://identity.{{custom_fields.region_code}}.intelliflo.net/core/connect/token
content-type: application/x-www-form-urlencoded
accept: application/json
grant_type=tenant_client_credentials
&
scope={{oauth.space_separated_scopes}}
&
tenant_id={{custom_fields.tenant_id}}