with Polar and Revolt?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
polar: {
type: "app",
app: "polar",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.polar.sh/v1/oauth2/userinfo`,
headers: {
Authorization: `Bearer ${this.polar.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
revolt: {
type: "app",
app: "revolt",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.revolt.$auth.environment}/auth/account/`,
headers: {
"x-session-token": `${this.revolt.$auth.oauth_access_token}`,
},
})
},
})