🎉 Pipedream raises $20M Series A 🎉
Read the blog post and TC Techcrunch article.
← Dropbox + HTTP / Webhook integrations

Send GET Request with HTTP / Webhook APIon New or Modified File or Folder from Dropbox API

Pipedream makes it easy to connect APIs for HTTP / Webhook, Dropbox and 700+ other apps remarkably fast.

Trigger workflow on
New or Modified File or Folder from the Dropbox API
Next, do this
Send GET Request with the HTTP / Webhook API
No credit card required
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

This integration creates a workflow with a Dropbox trigger and HTTP / Webhook action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New or Modified File or Folder trigger
    1. Connect your Dropbox account
    2. Select a Path
    3. Configure Recursive
    4. Configure includeMediaInfo
    5. Configure includeLink
    6. Configure dropboxApphook
  3. Configure the Send GET Request action
    1. Connect your HTTP / Webhook account
    2. Configure HTTP Request Configuration
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, open source components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emits an event when a file or folder is added or modified. Make sure the number of files/folders in the watched folder does not exceed 4000.
Version:0.0.4
Key:dropbox-new-or-modified-file-or-folder

Trigger Code

const dropbox = require("../../dropbox.app.js");

module.exports = {
  key: "dropbox-new-or-modified-file-or-folder",
  name: "New or Modified File or Folder",
  version: "0.0.4",
  description:
    "Emits an event when a file or folder is added or modified. Make sure the number of files/folders in the watched folder does not exceed 4000.",
  props: {
    dropbox,
    path: { propDefinition: [dropbox, "path"] },
    recursive: { propDefinition: [dropbox, "recursive"] },
    includeMediaInfo: {
      type: "boolean",
      description:
        "Emit media info for photo and video files (incurs an additional API call)",
      default: false,
    },
    includeLink: {
      type: "boolean",
      description:
        "Emit temporary download link for files (incurs an additional API call)",
      default: false,
    },
    dropboxApphook: {
      type: "$.interface.apphook",
      appProp: "dropbox",
      static: [],
    },
    db: "$.service.db",
  },
  hooks: {
    async activate() {
      await this.dropbox.initState(this);
    },
  },
  async run(event) {
    const updates = await this.dropbox.getUpdates(this);
    for (update of updates) {
      if (update[".tag"] == "file") {
        if (this.includeMediaInfo) {
          const dpx = await this.dropbox.sdk();
          update = await dpx.filesGetMetadata({
            path: update.path_lower,
            include_media_info: true,
          });
          if (update.result) {
            update = update.result;
          }
        }
        if (this.includeLink) {
          const dpx = await this.dropbox.sdk();
          let response = await dpx.filesGetTemporaryLink({
            path: update.path_lower,
          });
          if (response.result) {
            response = response.result;
          }
          const { link, metadata } = response;
          update.link = link;
        }
      }
      this.$emit(update);
    }
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
DropboxdropboxappThis component uses the Dropbox app.
PathpathstringSelect a value from the drop down menu.
Recursiverecursiveboolean

Also watch sub-directories and their contents.

includeMediaInfoboolean

Emit media info for photo and video files (incurs an additional API call)

includeLinkboolean

Emit temporary download link for files (incurs an additional API call)

dropboxApphook$.interface.apphook
N/Adb$.service.dbThis component uses $.service.db to maintain state between component invocations.

Trigger Authentication

Dropbox uses OAuth authentication. When you connect your Dropbox account, Pipedream will open a popup window where you can sign into Dropbox and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Dropbox API.

Pipedream requests the following authorization scopes when you connect your account:

About Dropbox

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

Action

Description:Send an HTTP GET request to any URL. Optionally configure query string parameters, headers and basic auth.
Version:1.0.1
Key:http-get-request

Action Code

import customRequest from "../custom-request/custom-request.mjs";

export default {
  ...customRequest,
  key: "http-get-request",
  name: "Send GET Request",
  description: "Send an HTTP GET request to any URL. Optionally configure query string parameters, headers and basic auth.",
  type: "action",
  version: "1.0.1",
  props: {
    ...customRequest.props,
    /* eslint-disable-next-line pipedream/props-label,pipedream/props-description */
    httpRequest: {
      ...customRequest.props.httpRequest,
      default: {
        method: "GET",
      },
    },
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
HTTP / WebhookhttpappThis component uses the HTTP / Webhook app.
HTTP Request ConfigurationhttpRequesthttp_request

Action Authentication

The HTTP / Webhook API does not require authentication.

About HTTP / Webhook

Get a unique URL where you can send HTTP or webhook requests

More Ways to Connect HTTP / Webhook + Dropbox

About Pipedream

Stop writing boilerplate code, struggling with authentication and managing infrastructure. Start connecting APIs with code-level control when you need it — and no code when you don't.

Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
"The past few weeks, I truly feel like the clichéd 10x engineer."
@heyellieday