with Daffy and Redis Cloud REST API?
The Daffy API lets you drive charitable giving through its platform. With Pipedream, you can automate donations, manage donor data, and integrate charitable actions within your existing workflows. You can trigger actions based on diverse events, like donations or new user registrations, and connect with other apps to streamline and scale your impact.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
daffy: {
type: "app",
app: "daffy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://public.daffy.org/v1/users/me`,
headers: {
"X-Api-Key": `${this.daffy.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
redis_cloud_rest_api: {
type: "app",
app: "redis_cloud_rest_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.redislabs.com/v1/`,
headers: {
"x-api-key": `${this.redis_cloud_rest_api.$auth.api_account_key}`,
"x-api-secret-key": `${this.redis_cloud_rest_api.$auth.api_user_key}`,
},
})
},
})