with HelpSpot and GreenSpark?
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`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
greenspark: {
type: "app",
app: "greenspark",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.getgreenspark.com/v1/project-categories`,
headers: {
"x-api-key": `${this.greenspark.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})