with Polar and HelpSpot?
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: {
helpspot: {
type: "app",
app: "helpspot",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.helpspot.$auth.subdomain}.helpspot.com/api/index.php`,
headers: {
Authorization: `Bearer ${this.helpspot.$auth.api_token}`,
},
params: {
method: `private.addressbook.getContacts`,
output: `json`,
},
})
},
})