You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-12-03 22:39:12 +02:00
1.1 KiB
1.1 KiB
sidebar_position
| sidebar_position |
|---|
| 5 |
Create folder
Creates an empty directory on the drive
Function CreateFolder(Val Token, Val Name, Val Parent = "") Export
| Parameter | CLI option | Type | Description |
|---|---|---|---|
| Token | --token | String | Token |
| Name | --title | String | Folder name |
| Parent | --catalog | String | Parent |
Returns: Map Of KeyAndValue - serialized JSON response from Google
Token = "ya29.a0AcM612xw6IRwwkQIOEhizd2pJ6LLI4UAhdhxmXDGEzYkcfUPrLYgDDwbsSi5iQdc78WPs_1_Qor5KipuV6mAIvr6z-AKzrBaMT4erIR5T...";
Directory = "191iyaa6-2BCNRPOF0F8mQ0TuNWPNesdM";
Name = "TestFolder";
Result = OPI_GoogleDrive.CreateFolder(Token, Name, Directory);
oint gdrive CreateFolder --token %token% --title "TestFolder" --catalog %catalog%
{
"kind": "drive#file",
"id": "1trgAzkF_pMFm3uLJKeXIUd6K2W3YYhcY",
"name": "TestFolder",
"mimeType": "application/vnd.google-apps.folder"
}