import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
csvbox: {
type: "app",
app: "csvbox",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://api.csvbox.io/1.1/auth`,
headers: {
"x-csvbox-api-key": `${this.csvbox.$auth.api_key}`,
"x-csvbox-secret-api-key": `${this.csvbox.$auth.secret_api_key}`,
},
})
},
})
CSVbox uses API keys for authentication. When you connect your CSVbox account, Pipedream securely stores the keys so you can easily authenticate to CSVbox APIs in both code and no-code steps.