1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/examples/GoogleDrive/UploadFile.txt
Vitaly the Alpaca (bot) 11e3216280 Main build (Jenkins)
2025-10-29 21:59:54 +03:00

11 lines
483 B
Plaintext
Vendored

Token = "ya29.a0ATi6K2vDW-Vv1H04Laa7CH4aF_93Z7LtfD1VoGLPCWCYErIG_1l_DAwwozCcosZGjJ8Pw0i45BG5ojbNDczD3Iskrwrl_K7jf7N7dHe0f5kYLvKyhDmT3AO2m...";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg";
Directory = "11Mo30odYPEtBBU_0OndFx5dz1kP7tu-Y";
Clear = False;
Description = OPI_GoogleDrive.GetFileDescription(Clear);
Description.Insert("Parent", Directory);
Result = OPI_GoogleDrive.UploadFile(Token, Image, Description);