Reputation: 523
I am trying to follow the the Python Quickstart example https://developers.google.com/sheets/api/quickstart/python
The article tells me to first create credentials: https://developers.google.com/workspace/guides/create-credentials
This produces a file called client_secret[longs string of numbers].json
However, my problem is that I don't understand what to do with this file.
There is no mention of it in the python quick start program, which instead refers to token.json and credentials.json.
When I run quickstart.py, I get the error message:
"Authorization Error
Error 401: deleted_client The OAuth client was deleted."
When searching for that error, I found this article: Google Apps Script: "Error 401: deleted_client The OAuth client was deleted" All of a sudden?
However, it does not seem to address my problem - it talks about some project being deleted. I am talking about a situation where I am trying to start everything from scratch.
Also, this questions is related: getting authorisation for google spreadsheet app But it is caused by another problem (different users).
Upvotes: 0
Views: 1460
Reputation: 523
It turned out that the problem was that I had created the wrong type of credentials - I have erroneously chosen web application
instead of desktop application
. When that was corrected, everything worked as expected.
Upvotes: 1