89 lines
1.9 KiB
Markdown
89 lines
1.9 KiB
Markdown
# n8n kDrive Node
|
|
|
|
This is an n8n node for interacting with the Infomaniak kDrive API.
|
|
|
|
## Features
|
|
|
|
- **Drive Operations**: List drives, get drive information
|
|
- **File Operations**: List files, get file info, upload, download, delete, search, get versions
|
|
- **Directory Operations**: Create directories, create files
|
|
|
|
## Installation
|
|
|
|
1. Install the node in your n8n instance
|
|
2. Set up your kDrive API credentials
|
|
3. Start using the kDrive node in your workflows
|
|
|
|
## Credentials
|
|
|
|
You need to provide your kDrive API key. You can obtain this from the Infomaniak developer portal.
|
|
|
|
## Operations
|
|
|
|
### Drive Operations
|
|
- **List Drives**: Get a list of all accessible drives
|
|
- **Get Drive Info**: Get information about a specific drive
|
|
|
|
### File Operations
|
|
- **List Files**: List files in a directory
|
|
- **Get File Info**: Get detailed information about a file
|
|
- **Upload File**: Upload a file to kDrive
|
|
- **Download File**: Download a file from kDrive
|
|
- **Delete File**: Move a file to trash
|
|
- **Search Files**: Search for files in kDrive
|
|
- **Get File Versions**: Get version history of a file
|
|
|
|
### Directory Operations
|
|
- **Create Directory**: Create a new directory
|
|
- **Create File**: Create a new file with content
|
|
|
|
## Usage Examples
|
|
|
|
### List all drives
|
|
```
|
|
Resource: Drive
|
|
Operation: List Drives
|
|
```
|
|
|
|
### List files in root directory
|
|
```
|
|
Resource: File
|
|
Operation: List Files
|
|
Drive ID: [your drive ID]
|
|
Parent Directory ID: root
|
|
```
|
|
|
|
### Upload a file
|
|
```
|
|
Resource: File
|
|
Operation: Upload File
|
|
Drive ID: [your drive ID]
|
|
File Data: [base64 encoded file content]
|
|
File Name: myfile.txt
|
|
Parent Directory ID: root
|
|
```
|
|
|
|
### Download a file
|
|
```
|
|
Resource: File
|
|
Operation: Download File
|
|
Drive ID: [your drive ID]
|
|
File ID: [file ID]
|
|
```
|
|
|
|
## API Documentation
|
|
|
|
For more information about the kDrive API, visit: https://developer.infomaniak.com
|
|
|
|
## Development
|
|
|
|
To build this node:
|
|
```bash
|
|
npm install
|
|
npm run build
|
|
```
|
|
|
|
## License
|
|
|
|
LGPL-3.0 License
|