import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ecologi: {
type: "app",
app: "ecologi",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://public.ecologi.com/users/{{YOUR_USERNAME}}/trees`,
headers: {
Authorization: `Bearer ${this.ecologi.$auth.api_key}`,
"Accept": `application/json`,
},
})
},
})
Ecologi uses API keys for authentication. When you connect your Ecologi account, Pipedream securely stores the keys so you can easily authenticate to Ecologi APIs in both code and no-code steps.
To retrieve your API key,
Navigate to your Ecologi account and sign in
Go to “Account” > “Impact API”