1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/examples/GoogleDrive/UploadFile.txt
Vitaly the Alpaca (bot) 408d8c61df Main build (Jenkins)
2025-03-17 22:58:06 +03:00

9 lines
433 B
Plaintext
Vendored

Token = "ya29.a0AeXRPp7yIYtWir0wC7l09O27fzCyaFxBylix9NPJ_QNA1wB4QVUrG4U7Fr2QSwtfnWG7ZYf6VNrnekZ-jXtryEWp_DVIDnn_y8ABtqeWr...";
Image = "https://api.athenaeum.digital/test_data/picture.jpg";
Directory = "11Mo30odYPEtBBU_0OndFx5dz1kP7tu-Y";
Description = OPI_GoogleDrive.GetFileDescription();
Description.Insert("Parent", Directory);
Result = OPI_GoogleDrive.UploadFile(Token, Image, Description);