with Donately and E2B?
The Donately API provides a suite of endpoints for managing fundraising activities, processing donations, and analyzing donor data. With Pipedream, you can automate donation tracking, engage donors with personalized communications, and sync fundraising data across various platforms. It's a powerful tool for nonprofits and charitable organizations looking to streamline their fundraising operations and gain deeper insights into their donor base.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
donately: {
type: "app",
app: "donately",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.donately.com/v2/people/me`,
headers: {
Authorization: `Bearer ${this.donately.$auth.api_token}`,
},
})
},
})
import 'dotenv/config';
import { Sandbox } from '@e2b/code-interpreter';
export default defineComponent({
props: {
e2b: {
type: "app",
app: "e2b",
}
},
async run({steps, $}) {
const sbx = await Sandbox.create({
apiKey: this.e2b.$auth.api_key
}); // By default the sandbox is alive for 5 minutes
return await sbx.runCode('print("hello world")'); // Execute Python inside the sandbox
},
})