import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
burstyai: {
type: "app",
app: "burstyai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.burstyai.com/burstyai/storage/url`,
headers: {
Authorization: `Bearer ${this.burstyai.$auth.api_key}`,
"accept": `application/json`,
},
params: {
fileList: `xxx/yyy.jpg`, //Comma-separated s3 object IDs used to fetch corresponding download URLs,
//e.g. for a s3 object ID as @url{xxx/yyy.jpg}@, the parameter value shall
//be xxx/yyy.jpg only, excluding @url{}@ is a must.
},
})
},
})
BurstyAI uses API keys for authentication. When you connect your BurstyAI account, Pipedream securely stores the keys so you can easily authenticate to BurstyAI APIs in both code and no-code steps.