with Ecologi and RunSignup?
Buy carbon avoidance credits through Ecologi. See the documentation
The Ecologi API allows you to integrate with their platform to track and support climate projects. Through Pipedream, you can automate interactions with Ecologi, including retrieving your carbon offset data, funding climate projects, and planting trees. With Pipedream's serverless platform, you can create workflows that trigger based on various events, process data, and connect with thousands of other apps to perform actions conditionally based on your sustainability goals.
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`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
runsignup: {
type: "app",
app: "runsignup",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://runsignup.com/Rest/v2/auth-info/entity-info.json`,
headers: {
"x-rsu-api-secret": `${this.runsignup.$auth.api_secret}`,
},
params: {
rsu_api_key: `${this.runsignup.$auth.api_key}`,
},
})
},
})