Dropbox gives you secure access to all your files. Collaborate with friends, family, and coworkers from any device.
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.
Get a URL and emit the full HTTP event on every request (including headers and query parameters). You can also configure the HTTP response code, body, and more.
Emit new event when a new folder is created. Make sure the number of files/folders in the watched folder does not exceed 4000.
Get a URL and emit the HTTP body as an event on every request
Emit new event when the content of the URL changes.
Creates a brand new text file from plain text content you specify. See docs here
Send an HTTP request using any method and URL. Optionally configure query string parameters, headers, and basic auth.
Send an HTTP GET request to any URL. Optionally configure query string parameters, headers and basic auth.
Adds a new line to an existing text file, or creates a file if it doesn't exist. See docs here
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:
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,
})
},
})
// To use any npm package on Pipedream, just import it
import axios from "axios"
export default defineComponent({
async run({ steps, $ }) {
const { data } = await axios({
method: "GET",
url: "https://pokeapi.co/api/v2/pokemon/charizard",
})
return data.species
},
})