-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get the real ID of a shortcut? #74
Comments
https://developers.google.com/drive/api/v3/shortcuts targetID and targetMimeType not applied in pydrive2? |
Could you try to do example is here- https://iterative.github.io/PyDrive2/docs/build/html/filemanagement.html#handling-special-metadata |
thank you very much. file.FetchMetadata(fields='shortcutDetails') get nothing file.FetchMetadata(fetch_all=True),get 403 error: |
@hagemouse hmm, what fileId do you pass to the
|
Thank you for your reply. If I just use FetchMetadata() with no para, there is no field called targetId. |
Another problem is, it seems that there is not a function in pydrive2 than can be used to get the list of team drives. And I can not get the correct name(title) of team drives by FetchMetadata(driveId), all of them are same:"Team Drive". |
Could you try to open https://developers.google.com/drive/api/v2/reference/files/get, click "Try it" to the right and run the query, with the same ID (there is Same for the drives list - we need to see it's working in the explorer to understand what is missing. |
from v2 to v3:
can not get team drive list or names from files.get. have to use drives.get. but I did not find it in pydrive2. |
For
what are you trying to do here? why do you need a list of all drives? |
When have a fileId ,I want to make a full path like this: /gdrive/Shareddrives/a/b/c/1.zip. But now I think I can write the ids and name of my team drives as a tuple. Thank you very much. |
so, does it mean the problem is solved? I'm closing the issue then, feel free to reopen if needed. |
Hi,
When someone shares something, you can make a shortcut into "My Drive", and you can access it in chrome or firefox. But the ID of the shortcut is not the real ID of the shared thing.
So how could I get the real ID from the shortcut?
I didn't find anything related with it in GoogleDriveFile.
Thank you.
The text was updated successfully, but these errors were encountered: