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

How to use resourcekey now? #384

Closed
paulvern opened this issue Feb 3, 2022 · 3 comments
Closed

How to use resourcekey now? #384

paulvern opened this issue Feb 3, 2022 · 3 comments

Comments

@paulvern
Copy link

paulvern commented Feb 3, 2022

Hi there,
I need to access the following folder (it's a folder of public data so try it if you need).

https://drive.google.com/drive/folders/0B7KLnPu6vjdPVGJKR3E4SEluU0U?resourcekey=0-BpIFAUyIXcyMUZiUZT0BtQ

It seems I can't access it anymore with drive_ls

lista <-
  drive_ls("https://drive.google.com/drive/folders/0B7KLnPu6vjdPVGJKR3E4SEluU0U?resourcekey=0-BpIFAUyIXcyMUZiUZT0BtQ")

and the old

lista <-
  drive_ls("https://drive.google.com/drive/folders/0B7KLnPu6vjdPVGJKR3E4SEluU0U")

doesn't work as well.
Any idea?
Thanks.

@achubaty
Copy link

related: #371

@paulvern
Copy link
Author

Sure but not resolved.
Apps script has recently introduced:

DriveApp.getFileByIdAndResourceKey(id,rk)

I hope that function will be available in this package as well.

@jennybc
Copy link
Member

jennybc commented Feb 11, 2022

Yes this is #371. As I say there:

My current inclination is to sit on this until I have a concrete example of someone bumping up against it. I am not immediately able to get my hands on a concrete example of a file for which the resource key is necessary for API access. It is not practical to adapt to this change until I have a concrete example to work against.

So thanks @paulvern for the concrete example I need to actually tackle this. I'm closing this in favour of #371, but the example folder here is just what I needed.

@jennybc jennybc closed this as completed Feb 11, 2022
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

No branches or pull requests

3 participants