@robinpath/onedrive
OneDrive module for RobinPath.

Why use this module?
The onedrive module lets you:
- listChildren
- getItem
- getItemByPath
- createFolder
- deleteItem
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/onedrive
Quick Start
1. Set up credentials
onedrive.setCredentials "your-credentials"
2. listChildren
onedrive.listChildren
Available Functions
onedrive.setCredentials | Configure onedrive credentials. |
onedrive.listChildren | listChildren |
onedrive.getItem | getItem |
onedrive.getItemByPath | getItemByPath |
onedrive.createFolder | createFolder |
onedrive.deleteItem | deleteItem |
onedrive.moveItem | moveItem |
onedrive.copyItem | copyItem |
onedrive.uploadFile | uploadFile |
onedrive.downloadFile | downloadFile |
onedrive.searchFiles | searchFiles |
onedrive.createSharingLink | createSharingLink |
onedrive.listSharedWithMe | listSharedWithMe |
onedrive.getPermissions | getPermissions |
onedrive.getDriveInfo | getDriveInfo |
onedrive.listDrives | listDrives |
onedrive.getRecentFiles | getRecentFiles |
onedrive.getThumbnails | getThumbnails |
onedrive.uploadLargeFile | uploadLargeFile |
Examples
listChildren
onedrive.listChildren
getItem
onedrive.getItem
getItemByPath
onedrive.getItemByPath
Integration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/onedrive";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
onedrive.setCredentials "your-credentials"
onedrive.listChildren
`);
Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
License
MIT