Create, manage and deliver digital experiences
Enables you to get a report on the status of your Cloudinary account usage details, including storage, credits, bandwidth, requests, number of resources, and add-on usage. See the documentation
Create a new document in a collection of your choice. See the docs here
Lists resources (assets) uploaded to your product environment. See the documentation
Transforms images on-the-fly. It modifies them to any required format, style and dimension, resize and crop the images, etc. See the documentation
The Cloudinary API empowers developers to manage media assets in the cloud with ease. It allows for uploading, storing, optimizing, and delivering images and videos with automated transformations to ensure the content is tailored for any device or platform. This API's versatility is key for automating workflows that require dynamic media handling, such as resizing images on-the-fly, converting video formats, or even extracting metadata for asset management.
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}`,
},
})
},
})
The MongoDB API provides powerful capabilities to interact with a MongoDB database, allowing you to perform CRUD (Create, Read, Update, Delete) operations, manage databases, and execute sophisticated queries. With Pipedream, you can harness these abilities to automate tasks, sync data across various apps, and react to events in real-time. It’s a combo that’s particularly potent for managing data workflows, syncing application states, or triggering actions based on changes to your data.
import mongodb from 'mongodb'
export default defineComponent({
props: {
mongodb: {
type: "app",
app: "mongodb",
},
collection: {
type: "string"
},
filter: {
type: "object"
}
},
async run({steps, $}) {
const MongoClient = mongodb.MongoClient
const {
database,
hostname,
username,
password,
} = this.mongodb.$auth
const url = `mongodb+srv://${username}:${password}@${hostname}/test?retryWrites=true&w=majority`
const client = await MongoClient.connect(url, {
useNewUrlParser: true,
useUnifiedTopology: true
})
const db = client.db(database)
const results = await db.collection(this.collection).find(this.filter).toArray();
$.export('results', results);
await client.close()
},
})