1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-18 23:48:56 +02:00
OpenIntegrations/docs/en/examples/GoogleDrive/UploadFile.txt

12 lines
384 B
Plaintext

Description = New Map;
Description.Insert("MIME", "image/jpeg");
Description.Insert("Name", "New file.jpg");
Description.Insert("Description", "This is a new file");
Description.Insert("Parent", "root");
Image = "C:\OPI\image.jpg";
Response = OPI_GoogleDrive.UploadFile(Token, Image, Description); //Map
Response = OPI_Tools.JSONString(Response); //String