import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kenjo: {
type: "app",
app: "kenjo",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.kenjo.$auth.api_url}/user-accounts`,
headers: {
Authorization: `${this.kenjo.$auth.access_token}`,
Accept: "application/json"
},
})
},
})
Kenjo uses OAuth authentication. When you connect your Kenjo account, Pipedream will open a popup window where you can sign into Kenjo and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Kenjo API.
Pipedream requests the following authorization scopes when you connect your account:
POST
{{custom_fields.api_url}}/auth/login
accept: application/json
apiKey={{custom_fields.api_key}}
POST
{{custom_fields.api_url}}/auth/login
content-type: application/json
accept: application/json
apiKey={{custom_fields.api_key}}