Nextcloud's API lets you tap into your self-hosted cloud storage and collaboration platform. With Pipedream, you can automate tasks like file management, user account operations, and accessing calendar and contacts. It's a treasure trove for creating workflows that sync, share, and manage data programmatically between Nextcloud and other apps.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
nextcloud: {
type: "app",
app: "nextcloud",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.nextcloud.$auth.url}/ocs/v2.php/apps/files_sharing/api/v1/shares`,
headers: {
"OCS-APIRequest": `true`,
},
auth: {
username: `${this.nextcloud.$auth.username}`,
password: `${this.nextcloud.$auth.password}`,
},
})
},
})
Automated File Synchronization: Create a workflow that monitors a specific folder in Dropbox (or any other cloud storage service) for new files and automatically uploads them to a designated folder in Nextcloud.
Contacts Sync Between Platforms: Whenever a new contact is added to your Google Contacts, have a Pipedream workflow that pushes that contact into your Nextcloud Contacts, keeping your address books in sync across platforms.
Calendar Event Alert System: Set up a Pipedream workflow where, if a new event is added to your Nextcloud Calendar, a message with event details is sent out via Slack to keep your team informed and aligned.
Emit new event whenever a share is created in Nextcloud. See the documentation
Creates a new share link from the specified path in Nextcloud. See the documentation
Retrieves a list of shares based on the specified criteria in Nextcloud. See the documentation
Nextcloud uses API keys for authentication. When you connect your Nextcloud account, Pipedream securely stores the keys so you can easily authenticate to Nextcloud APIs in both code and no-code steps.