import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zenventory: {
type: "app",
app: "zenventory",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.zenventory.com/rest/inventory/items`,
auth: {
username: `${this.zenventory.$auth.api_key}`,
password: `${this.zenventory.$auth.api_secret}`,
},
})
},
})
Zenventory uses API keys for authentication. When you connect your Zenventory account, Pipedream securely stores the keys so you can easily authenticate to Zenventory APIs in both code and no-code steps.
To generate a API Key and Secret pair for a user, visit the API Keys page under Admin Users.