import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
topdesk: {
type: "app",
app: "topdesk",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.topdesk.$auth.api_url}/tas/api/incidents`,
auth: {
username: `${this.topdesk.$auth.username}`,
password: `${this.topdesk.$auth.app_token}`,
},
})
},
})
TOPdesk uses API keys for authentication. When you connect your TOPdesk account, Pipedream securely stores the keys so you can easily authenticate to TOPdesk APIs in both code and no-code steps.