import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
belco: {
type: "app",
app: "belco",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.belco.io/v1/users`,
headers: {
Authorization: `Bearer ${this.belco.$auth.api_token}`,
"accept": `application/json`,
},
})
},
})
Belco uses API keys for authentication. When you connect your Belco account, Pipedream securely stores the keys so you can easily authenticate to Belco APIs in both code and no-code steps.