import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bunnycdn: {
type: "app",
app: "bunnycdn",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://bunnycdn.com/api/billing`,
headers: {
"AccessKey": `${this.bunnycdn.$auth.api_key}`,
},
})
},
})
BunnyCDN uses API keys for authentication. When you connect your BunnyCDN account, Pipedream securely stores the keys so you can easily authenticate to BunnyCDN APIs in both code and no-code steps.
To authenticate with the API, add an AccessKey HTTP header to your requests with your API key as the value. You can find this in our Dashboard in the My Account section.