Skip to content
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

docs: add docs for creating a GoogleDriveFile by ID #368

Closed
wants to merge 1 commit into from

Conversation

jsquyres
Copy link

Many thanks for PyDrive2!

I had a use case where I had obtained a Google File ID by another mechanism, but wanted to use it with the PyDrive2 API. This didn't appear to be documented anywhere, but it does appear to be supported. Hence, I wrote a short example showing how to do it.

Hopefully this is useful to you!

@shcheklein
Copy link
Member

@jsquyres thanks! it's an excellent example. Let's make it part of the existing section - https://docs.iterative.ai/PyDrive2/filemanagement/ ? wdyt?

@shcheklein
Copy link
Member

@jsquyres
Copy link
Author

Wow, those file['id'] examples were already there and I somehow totally missed them... 😲

Is my example even relevant given that https://docs.iterative.ai/PyDrive2/filemanagement/#download-file-metadata-from-file-id both https://docs.iterative.ai/PyDrive2/filemanagement/#download-file-content both mention drive.Createfile({ 'id': fileX['id'] })?

E.g., are you suggesting that I take the section in this PR and put it at the end of filemanagement, after the "Download file content" section?

@shcheklein
Copy link
Member

Yep, I also didn't check those sections. It is less relevant then. I'm fine to close this PR then. :)

@jsquyres jsquyres closed this Dec 31, 2024
@jsquyres jsquyres deleted the pr/add-file-id-doc branch December 31, 2024 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants