import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
helpdesk: {
type: "app",
app: "helpdesk",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.helpdesk.com/v1/agents`,
headers: {
"content-type": `application/json`,
},
auth: {
username: `${this.helpdesk.$auth.account_id}`,
password: `${this.helpdesk.$auth.access_token}`,
},
})
},
})
HelpDesk uses API keys for authentication. When you connect your HelpDesk account, Pipedream securely stores the keys so you can easily authenticate to HelpDesk APIs in both code and no-code steps.
To get your Account and Organization ID, sign in to HelpDesk developer console, click the "Settings" menu with the gear icon on the left bottom and go to "General" > "Account".