Import a Drive / OneDrive folder into the Library
import_from_cloudImports files from a Google Drive or OneDrive folder into your brand's Library using the connected account, so they can be published, scheduled, or used as product photos or references.
Instructions
Pull the files in a Google Drive or OneDrive FOLDER into this brand'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, so this is the only way in) 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 — if a folder comes back empty, that is the answer, and the user picks it in the app once to make it reachable. 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 |