import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zammad: {
type: "app",
app: "zammad",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.zammad.$auth.subdomain}.zammad.com/api/v1/users`,
headers: {
"authorization": `Token token=${this.zammad.$auth.api_token}`,
},
})
},
})
Zammad uses API keys for authentication. When you connect your Zammad account, Pipedream securely stores the keys so you can easily authenticate to Zammad APIs in both code and no-code steps.