Google drive: open folder in a browser?

Hello,

If I have a Google folder stored in a TTMSFNCCloudGoogleDriveItem, is there a way to open a browser with the link of this folder? Just the way if I click on a folder in the Google drive.

For example a Google folder link is similar the this: "https://drive.google.com/drive/folders/0B5PxWK9ZRqjUMjZiNDczZGYtNzlkNC00ODE5LWJmODctNzY2MzliNmMzNTZh?resourcekey=0-vXgncreLJ-TPoD8kdhNrQU"

If I would be able to retrieve this from the component, then I would be able to do it.

Thank you!

Hi,

Can you please try using the TTMSFNCCloudGoogleDriveItem.DownloadURL value?

Hi Bart,

I used it, and I got an error in the browser. Which I don't understand because I am obviously logged in with the TTMSFNCCloudGoogleDrive component:

"{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "dailyLimitExceededUnreg",
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
"extendedHelp": "https://code.google.com/apis/console"
}
],
"code": 403,
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
}
}"

Sorry, I misread your question.

Can you please try using the TTMSFNCCloudGoogleDriveItem.AlternateLink property value instead?

Hello Bart,

Thank you for the answer. TTMSFNCCloudGoogleDriveItem.AlternateLink has empty string value.

We are not aware of any issues with the AlternateLInk property.
Does the problem also happen when you use this technique in the CloudStorageServices Demo?

Example:

procedure TForm1.Button1Click(Sender: TObject);
var
  it: TTMSFNCCloudGoogleDriveItem;
begin
  if TMSFNCCloudDemoListBox1.ItemIndex >= 0 then
  begin
    it := TMSFNCCloudDemoListBox1.Items[TMSFNCCloudDemoListBox1.ItemIndex].DataObject as TTMSFNCCloudGoogleDriveItem;
    if Assigned(it) then
      ShowMessage(it.AlternateLink);
  end;
end;