with Blackbaud and Formatting?
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
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}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})