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`,
},
})
},
})
Creates a new user request. See the documentation
Updates an existing user request. See the documentation
HelpSpot uses API keys for authentication. When you connect your HelpSpot account, Pipedream securely stores the keys so you can easily authenticate to HelpSpot APIs in both code and no-code steps.