with Project Bubble (ProProfs Project) and Cloudflare R2?
The Project Bubble (ProProfs Project) API offers a suite of project management tools that can help streamline workflows, improve collaboration, and track progress on tasks and milestones within a project. Using Pipedream, you can automate interactions between Project Bubble and other apps, create custom events based on project changes, and manage your projects efficiently. From syncing tasks with calendar apps to triggering notifications when project milestones are reached, the possibilities are vast for enhancing productivity and project oversight.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
project_bubble: {
type: "app",
app: "project_bubble",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.projectbubble.com/v2/user`,
headers: {
"key": `${this.project_bubble.$auth.api_key}`,
},
})
},
})
The Cloudflare R2 API lets you interact with Cloudflare's object storage service, providing a cost-effective way to store large amounts of data with no egress fees. On Pipedream, you can harness this API to build automated workflows that can store, retrieve, and manage data within your R2 buckets. By combining Cloudflare R2 with Pipedream’s capabilities, you can create serverless workflows that trigger on various events, process data in-flight, and integrate with over 800+ apps available on the platform.
import { S3 } from "@aws-sdk/client-s3";
import { ListBucketsCommand } from "@aws-sdk/client-s3";
export default defineComponent({
props: {
cloudflare_r2: {
type: "app",
app: "cloudflare_r2",
}
},
async run({ steps, $ }) {
const cloudflare_r2 = {
account_id: this.cloudflare_r2.$auth.account_id
};
const s3Client = new S3({
forcePathStyle: false,
endpoint: `https://${cloudflare_r2.account_id}.r2.cloudflarestorage.com`,
region: "auto",
credentials: {
accessKeyId: this.cloudflare_r2.$auth.access_key_id,
secretAccessKey: this.cloudflare_r2.$auth.access_key_secret
}
});
const data = await s3Client.send(new ListBucketsCommand({}));
return data.Buckets;
}
}
)