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

files options for listing just Google Docs documents #30

Closed
simonw opened this issue Feb 20, 2022 · 5 comments
Closed

files options for listing just Google Docs documents #30

simonw opened this issue Feb 20, 2022 · 5 comments
Labels
blocked enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Feb 20, 2022

Would be neat to have options that can return:

  • All Google Docs documents of any type
  • Just docs
  • Just sheets
  • Just presentations
  • Maybe just drawings?

Related:

@simonw simonw added enhancement New feature or request blocked labels Feb 20, 2022
@simonw
Copy link
Owner Author

simonw commented Feb 20, 2022

I think the content types are:

application/vnd.google-apps.document
application/vnd.google-apps.spreadsheet
application/vnd.google-apps.presentation
application/vnd.google-apps.form
application/vnd.google-apps.map

The form and map ones are interesting.

@simonw
Copy link
Owner Author

simonw commented Feb 20, 2022

Maybe:

  • --apps - get all Google Docs apps files of any format
  • --docs - all docs
  • --sheets - all sheets
  • --presentations -- all presentations
  • --drawings -- all drawings

@simonw
Copy link
Owner Author

simonw commented Feb 20, 2022

This appears to work as part of the q parameter:

(mimeType = 'application/vnd.google-apps.map' or mimeType = 'application/vnd.google-apps.presentation')

@simonw
Copy link
Owner Author

simonw commented Feb 20, 2022

Here's a full list of mime types: https://developers.google.com/drive/api/v3/mime-types

  • application/vnd.google-apps.audio
  • application/vnd.google-apps.document
  • application/vnd.google-apps.drive-sdk
  • application/vnd.google-apps.drawing
  • application/vnd.google-apps.file
  • application/vnd.google-apps.folder
  • application/vnd.google-apps.form
  • application/vnd.google-apps.fusiontable
  • application/vnd.google-apps.map
  • application/vnd.google-apps.photo
  • application/vnd.google-apps.presentation
  • application/vnd.google-apps.script
  • application/vnd.google-apps.shortcut
  • application/vnd.google-apps.site
  • application/vnd.google-apps.spreadsheet
  • application/vnd.google-apps.unknown
  • application/vnd.google-apps.video

@simonw
Copy link
Owner Author

simonw commented Feb 20, 2022

I'm only going to treat application/vnd.google-apps.spreadsheet and application/vnd.google-apps.presentation and application/vnd.google-apps.document and application/vnd.google-apps.drawing as things you can retrieve with --apps since those are the ones that have export options according to https://developers.google.com/drive/api/v3/ref-export-formats

(OK that page lists "app scripts" too, but I shall ignore those)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant