Import a Drive / OneDrive folder into the Library
import_from_cloudImports files from a Google Drive or OneDrive folder into your Hermoso library so you can publish, schedule, clone, or reuse them as product photos and references.
Instructions
Pull the files in a Google Drive or OneDrive FOLDER into this profile's Library, so they can be used like anything rendered here — published, scheduled, cloned, used as a product photo or a reference. Hermoso downloads each file with the user's own connected account (a Drive/OneDrive file is not public) and stores a durable Hermoso url for each. Give folderId from list_drive_files / list_onedrive_files with onlyFolders — omit it for the root. GOOGLE DRIVE ONLY SHOWS WHAT THE USER HANDED OVER: our Drive scope is drive.file, so Hermoso can see the files and folders it created plus the ones the user picked with the Google picker in the app, and NEVER their whole Drive. Picking a FOLDER hands over the folder alone, not the files in it, so if a folder comes back empty the reply carries a link that opens the picker inside it, where the user selects every file at once (Cmd+A / Ctrl+A); give them that link. OneDrive has no such limit. SUBFOLDERS ARE NOT WALKED and Google-native docs (Docs/Sheets/Slides) have no file to download: both are reported back BY NAME rather than silently dropped, along with anything too large or unreadable, so you can tell the user exactly what did and did not come across.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | how many files to bring across in this call (default 10, max 25). Anything over the limit is listed as skipped so you know what is left. | |
| folderId | No | the folder to import, from list_drive_files / list_onedrive_files (onlyFolders:true). Omit for the root of the drive. | |
| provider | Yes | which cloud — `drive` is Google Drive, `onedrive` is Microsoft OneDrive |