import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
billbee: {
type: "app",
app: "billbee",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.billbee.io/api/v1/shopaccounts`,
headers: {
"accept": `application/json`,
"x-billbee-api-key": `${this.billbee.$auth.api_key}`,
},
auth: {
username: `${this.billbee.$auth.username}`,
password: `${this.billbee.$auth.api_password}`,
},
params: {
page: `1`,
pageSize: `10`,
},
})
},
})
Billbee uses API keys for authentication. When you connect your Billbee account, Pipedream securely stores the keys so you can easily authenticate to Billbee APIs in both code and no-code steps.