import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cloudinary: {
type: "app",
app: "cloudinary",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.cloudinary.com/v1_1/${this.cloudinary.$auth.cloud_name}/resources/image`,
auth: {
username: `${this.cloudinary.$auth.api_key}`,
password: `${this.cloudinary.$auth.api_secret}`,
},
})
},
})
Cloudinary uses API keys for authentication. When you connect your Cloudinary account, Pipedream securely stores the keys so you can easily authenticate to Cloudinary APIs in both code and no-code steps.
Enter the cloud name, API key and API secret to connect your Cloudinary account. The API credentials are listed on the Dashboard page of your Cloudinary console.