Reputation: 51
This is very similar to this question -- I have basically the same question, and one of the commenters there said he had solved it but didn't flesh out the solution.
I have tried to follow mattm's instructions on the original question post: "I had the exact same issue and I had to enable both the Drive API for the project (in addition to BigQuery API), as well as use the BigQuery+Drive scopes. I also had to then manually permission the sheets to allow access to the [email protected] account my project used to access the Google Sheets with."
Has anyone else managed to get this working? Is it a matter of using BigQuery and Drive scopes, and if so, how do I do that?
Upvotes: 4
Views: 323
Reputation: 306
When formatting your request, make sure credentials have the following two scopes: 'https://www.googleapis.com/auth/drive.readonly' and 'https://www.googleapis.com/auth/cloud-platform'
Upvotes: 3