import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bannerbear: {
type: "app",
app: "bannerbear",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.bannerbear.com/v2/account`,
headers: {
Authorization: `Bearer ${this.bannerbear.$auth.api_key}`,
},
})
},
})
Bannerbear uses API keys for authentication. When you connect your Bannerbear account, Pipedream securely stores the keys so you can easily authenticate to Bannerbear APIs in both code and no-code steps.
Bannerbear uses API keys to allow access to the API. You can get an API key by creating a project in Bannerbear.