with Newsletter and Blackbaud?
The Newsletter API provides a way to integrate and automate email campaign management directly within Pipedream. With this API, you can manage subscribers, send out newsletters, and analyze the performance of your email campaigns. It's a powerful tool for website owners, bloggers, and marketers who want to engage their audience through regular email updates.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
newsletter: {
type: "app",
app: "newsletter",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.newsletter.$auth.url}/wp-json/newsletter/v2/subscribers`,
auth: {
username: `${this.newsletter.$auth.client_key}`,
password: `${this.newsletter.$auth.client_secret}`,
},
params: {
page: `{your_page}`,
per_page: `{your_per_page}`,
},
})
},
})
The Blackbaud API offers programmable access to a suite of services for educational institutions, nonprofits, and foundations, focusing on fundraising, relationship management, marketing, and financial functions. Leveraging this API on Pipedream allows for automated interactions with donor records, campaign metrics, and financial data, simplifying tasks like synchronizing donor information, triggering communications based on donations, or reporting financial insights to stakeholders.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
blackbaud: {
type: "app",
app: "blackbaud",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.sky.blackbaud.com/webhook/v1/subscriptions`,
headers: {
Authorization: `Bearer ${this.blackbaud.$auth.oauth_access_token}`,
"Bb-Api-Subscription-Key": `${this.blackbaud.$auth.bb_api_subscription_key}`,
},
})
},
})