Patreon is the best place for creators to build memberships by providing exclusive access to their work and a deeper connection with their communities.
Go to sitePipedream's integration with the Patreon API enables creators to automate interactions with their patrons, manage memberships, and streamline content delivery. By leveraging Pipedream's ability to connect with hundreds of apps, creators can set up custom workflows that trigger actions based on Patreon events, like new pledges, or that perform regular tasks, like sending messages to patrons.
import axios from "axios"
export default defineComponent({
props: {
patreon: {
type: "app",
app: "patreon",
}
},
async run({steps, $}) {
const resp = await axios({
url: `https://www.patreon.com/api/oauth2/v2/identity?fields%5Buser%5D=email,full_name`,
headers: {
Authorization: `Bearer ${this.patreon.$auth.oauth_access_token}`,
"Content-Type": `application/x-www-form-urlencoded`,
},
})
return resp.data
},
})
Auto-Thank New Patrons: Trigger a workflow when a new patron joins and automatically send a personalized thank you email via SendGrid or another email service provider connected to Pipedream.
Patron Milestone Celebrations: Set up a workflow that tracks the number of patrons and posts celebratory messages on social media platforms like Twitter when certain milestones are reached.
Exclusive Content Delivery: Create a system where new posts on Patreon trigger a workflow that sends exclusive content links to qualifying patrons through platforms like Slack or Discord.
Patreon uses OAuth authentication. When you connect your Patreon account, Pipedream will open a popup window where you can sign into Patreon and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Patreon API.
Pipedream requests the following authorization scopes when you connect your account:
identity
identity[email]
campaigns
w:campaigns.webhook
campaigns.posts
GET
https://patreon.com/oauth2/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://patreon.com/api/oauth2/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://patreon.com/api/oauth2/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}}