Sunday, September 19, 2021

How to get credentials of Google Workspace API with pythen

 when we use Google Workspace API ,first login account get credentials .

https://developers.google.com/sheets/api/quickstart/python

https://github.com/googleworkspace/python-samples/blob/master/sheets/quickstart/quickstart.py

Run code,then login google account








show messenger

The authentication flow has completed. You may close this window.




We get token.json in Working directory




If you get error,your credentials is not right.

error: Client secrets must be for a web or installed app

Read google developer

https://developers.google.com/workspace/guides/create-credentials