lazarus/components/googleapis/demo/drive
2022-05-17 20:50:08 +00:00
..
comp_googleapis_demo_drive_readme.txt Examplesmv restructure examples dir much like it used to be 2022-05-17 20:50:08 +00:00
drivedemo.ico images: Replace the default lazarus.ico used anywhere within the installation folder by the new version. Issue #39596. 2022-01-28 15:03:11 +01:00
drivedemo.lpi * Fix drive demo compilation 2019-12-06 12:32:21 +00:00
drivedemo.lpr
drivedemo.res * Fix drive demo compilation 2019-12-06 12:32:21 +00:00
frmmain.lfm * Fix drive demo compilation 2019-12-06 12:32:21 +00:00
frmmain.pp * Fix drive demo compilation 2019-12-06 12:32:21 +00:00
frmselectdownload.lfm
frmselectdownload.pp
google_drive.ex-meta Component demos and samples, a lot of general fixes. 2022-05-01 08:45:46 +00:00
google.ini
readme.txt Examplesmv restructure examples dir much like it used to be 2022-05-17 20:50:08 +00:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Following comment contributed by Forum user mgc in May 2022

The problems in the example code are:
- Opensslsockets is needed in the Uses clause;
- Error in these lines:
   Add(BoolToStr(Entry.capabilities.canEdit,'Yes','No'));
   Add(Entry.lastModifyingUser.displayName);

After compiling it worked, but not always. Many, many times I got the error “google.ini is being used for another process”. Obviously I am using Windows. Then I vanished the Inifiles unit and incorporated the ClientID and ClientSecret into the code and the problem disappeared. However, the performance is still very poor. Sometimes the program freezes, sometimes get fatal errors. Sometimes the program takes forever to close using the X button or Alt+F4.

Going to Linux has not make things better.  The performance is still very poor.

I watched the request.log file and notice that its size keeps growing on minutes after the request to the API. Meanwhile, sometimes it has an “Internal server error”. I concluded that this problem happens due to the large number of folders and sub-folders in my drive. Each folder is a call to the API which makes the process very slow and inefficient.
Least but not last, any sub-folder request results in a “bad request”.

I hope this contribution helped to update the APIs FP client.

Thanks.

Mauricio Camargo