import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
keboola: {
type: "app",
app: "keboola",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.keboola.$auth.stack_endpoint}/v2/storage/buckets`,
headers: {
"x-storageapi-token": `${this.keboola.$auth.api_token}`,
"content-type": `multipart/form-data`,
},
params: {
include: `include`,
},
})
},
})
Keboola uses API keys for authentication. When you connect your Keboola account, Pipedream securely stores the keys so you can easily authenticate to Keboola APIs in both code and no-code steps.