1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-26 05:37:27 +02:00
2024-08-14 09:06:31 +03:00

970 B

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


  
  Name = "TestFolder";
  
  Response = OPI_GoogleDrive.CreateFolder(Token, Name); //Map
  Response = OPI_Tools.JSONString(Response); //String
    
  oint gdrive CreateFolder --token %token% --title "TestFolder" --catalog %catalog%

{
  "mimeType": "application/vnd.google-apps.folder",
  "name": "TestFolder",
  "id": "1fIqr5pJV3QybT5sPeZhBD_0TIvtL5Ovc",
  "kind": "drive#file"
  }