with BunnyCDN and Netcore Cloud?
BunnyCDN is a powerful content delivery network (CDN) offering an API to manage and deliver content globally with ease. Through its API, you can programmatically purge cache, manage storage zones, and get detailed statistics about your content distribution. The BunnyCDN API facilitates building workflows on Pipedream that automate content delivery processes, leverage CDN data for analytics, and optimize digital asset management.
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
netcore: {
type: "app",
app: "netcore",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://emailapi.netcorecloud.net/v5.1/domain/getDomains`,
headers: {
"api_key": `${this.netcore.$auth.api_key}`,
},
params: {
status: `5`,
},
})
},
})