import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
keygen: {
type: "app",
app: "keygen",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.keygen.sh/v1/accounts/${this.keygen.$auth.account_id}/licenses`,
headers: {
Authorization: `Bearer ${this.keygen.$auth.product_token}`,
},
params: {
limit: `10`,
},
})
},
})
Keygen uses API keys for authentication. When you connect your Keygen account, Pipedream securely stores the keys so you can easily authenticate to Keygen APIs in both code and no-code steps.