UserName with GDrive


I would like to get the name of the user whose connected, in GDrive Cloud.

With DropBox, i found the method named GetAccountInfo, and I used AdvDropBox.Info.UserName.

But with GDrive, there no such method.
I wrote something like this, but i must put Token_Access in public declaration, in CloudBase:

    o := Storage.GetJSONObject(url);
    if Assigned(o) then
          IdentConnect := Storage.GetJSONProp(o,'name');

Is it an easier way to obtain username?



Unfortunately the user info is currently not available for TAdvGDrive.
However this is a good suggestion and we'll consider adding this functionality in a future version.

thanks for your answer