with Patreon and Spider?
Pipedream'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
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
spider: {
type: "app",
app: "spider",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.spider.cloud/data/profile`,
headers: {
Authorization: `Bearer ${this.spider.$auth.api_key}`,
},
})
},
})