I am using the Gmail API to try to create a project. And I am using Jupyter Notebook which is an IDE that is run locally in your browser. And in order to use the API, you have to enter a URI in the credentials page in the https://console.developers.google.com/ Google account.
Only then you can use the API. But with Jupyter, the URI changes every time the code is run. I am super confused about what to do to solve this problem. Any advice?
Here is the code Gmail provides for Python:
I think I experienced a similar issue. I solved it by, creating credentials, type: Desktop App. Then Jupyter Notebook can pass the authorization, and you can select a gmail account to authorize.