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.
Emit new event for each message posted to one or more channels in a Discord server
Emit new event when a new folder is created. Make sure the number of files/folders in the watched folder does not exceed 4000.
Emit new event for each command posted to one or more channels in a Discord server
Creates a brand new text file from plain text content you specify. See docs here
Adds a new line to an existing text file, or creates a file if it doesn't exist. See docs here
Creates or updates a public share link to the file or folder (It allows to share the file or folder with anyone). See docs here
Permanently removes a file/folder from the server. 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,
})
},
})
The Pipedream Discord app enables you to build event-driven workflows that interact with the Discord API. When you authorize the Pipedream app's access to your guilds, you can use Pipedream workflows to perform common Discord actions, or write your own code against the Discord API.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
discord: {
type: "app",
app: "discord",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://discord.com/api/users/@me`,
headers: {
Authorization: `Bearer ${this.discord.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})