Dropbox

Dropbox gives you secure access to all your files. Collaborate with friends, family, and coworkers from any device.

Integrate the Dropbox API with the MongoDB API

Setup the Dropbox API trigger to run a workflow which integrates with the MongoDB API. Pipedream's integration platform allows you to integrate Dropbox and MongoDB remarkably fast. Free for developers.

Create New Document with MongoDB API on New File from Dropbox API
Dropbox + MongoDB
 
Try it
Delete a Document with MongoDB API on New File from Dropbox API
Dropbox + MongoDB
 
Try it
Find Document by Id with MongoDB API on New File from Dropbox API
Dropbox + MongoDB
 
Try it
Search Documents with MongoDB API on New File from Dropbox API
Dropbox + MongoDB
 
Try it
Update a Document with MongoDB API on New File from Dropbox API
Dropbox + MongoDB
 
Try it
New File from the Dropbox API

Emit new event when a new file is added to your account or a specific folder. Make sure the number of files/folders in the watched folder does not exceed 4000.

 
Try it
New Folder from the Dropbox API

Emit new event when a new folder is created. Make sure the number of files/folders in the watched folder does not exceed 4000.

 
Try it
New Collection from the MongoDB API

Emit new an event when a new collection is added to a database

 
Try it
New Database from the MongoDB API

Emit new an event when a new database is added

 
Try it
New Document from the MongoDB API

Emit new an event when a new document is added to a collection

 
Try it
Create New Document with the MongoDB API

Create a new document in a collection of your choice. See the docs here

 
Try it
Delete a Document with the MongoDB API

Delete a single document by ID. See the docs here

 
Try it
Create a Text File with the Dropbox API

Creates a brand new text file from plain text content you specify. See docs here

 
Try it
Find Document by Id with the MongoDB API

Retrieves a single document by ID. See the docs here

 
Try it
Create folder with the Dropbox API

Create a folder. See docs here

 
Try it

Overview of Dropbox

With the Dropbox API, you can build a variety of applications that range from
simple file sharing to complex content management systems. Some examples of
what you can build using the Dropbox API include:

  • A file sharing application that allows users to share and sync files across
    devices
  • A content management system that allows users to manage and share files and
    folders
  • A note taking application that allows users to sync notes across devices
  • A task management application that allows users to manage and share tasks and
    files
  • A document management application that allows users to manage and share
    documents and files

Connect Dropbox

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    dropbox: {
      type: "app",
      app: "dropbox",
    }
  },
  async run({steps, $}) {
    const data = {
      "account_id": `${this.dropbox.$auth.oauth_uid}`,
    }
    return await axios($, {
      method: "post",
      url: `https://api.dropboxapi.com/2/users/get_account`,
      headers: {
        Authorization: `Bearer ${this.dropbox.$auth.oauth_access_token}`,
        "Content-Type": `application/json`,
      },
      data,
    })
  },
})

Overview of MongoDB

Assuming you want a few paragraph about the MongoDB API:

MongoDB offers a powerful API that allows developers to interact with their
databases in a variety of ways. The API provides methods for performing
standard CRUD (create, read, update, delete) operations, as well as more
specialized methods like bulk write operations and aggregate queries. MongoDB
also offers a rich set of indexing options that allow developers to optimize
their queries for maximum performance. With the MongoDB API, developers can
build a wide variety of applications, from simple data-driven apps to complex
event-driven systems.

Connect MongoDB

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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()
  },
})

Community Posts

Integrating Location Data into Pipedream Workflows
Integrating Location Data into Pipedream Workflows
Over the past few months, I've become somewhat enamored with a new service called Pipedream. Pipedream is yet another serverless solution with a bit of a twist. It makes it easy to build workflows by piecing together various actions like LEGO bricks. These actions are small pieces of programming logic that cover a wide variety of different services. You can connect these actions together along with the ability to write Node code for your own logic.