NationBuilder is a comprehensive platform for community organizing, offering tools for website creation, donor management, and communication with the community. The NationBuilder API unlocks potent opportunities for automation and data management. On Pipedream, you can leverage this API to streamline interactions between NationBuilder and other services, automate contacts synchronization, trigger communications based on user activities, and more, all while enjoying the benefits of serverless workflows.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
nationbuilder: {
type: "app",
app: "nationbuilder",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.nationbuilder.$auth.slug}.nationbuilder.com/api/v1/people/me`,
headers: {
Authorization: `Bearer ${this.nationbuilder.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})
Automate Contact Sync Between NationBuilder and a CRM: Sync new contacts from a CRM like Salesforce to NationBuilder or vice versa. When a contact is added or updated in Salesforce, the workflow can be triggered, automatically updating or creating a matching profile in NationBuilder.
Send Custom Email Campaigns Based on User Actions: Monitor user activities on NationBuilder, such as donations or signups, and use this data to trigger personalized email campaigns in an email service like SendGrid. For example, thank supporters who've recently donated or send follow-up information to new community members.
Create Real-Time Alerts for Key Activities: Set up a workflow that sends real-time alerts via Slack whenever key activities occur in NationBuilder, like significant donations or new membership signups. This keeps your team immediately informed and ready to act on new opportunities or show timely appreciation.
Create a new donation with the provided data. See the documentation
Create a new membership with the provided data. See the documentation
Create a new person with the provided data. See the documentation
Delete a specific donation with the provided Id. See the documentation
NationBuilder uses OAuth authentication. When you connect your NationBuilder account, Pipedream will open a popup window where you can sign into NationBuilder and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any NationBuilder API.
Pipedream requests the following authorization scopes when you connect your account:
default
GET
https://{{custom_fields.slug}}.nationbuilder.com/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://{{custom_fields.slug}}.nationbuilder.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://{{custom_fields.slug}}.nationbuilder.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}