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