Closed andreamoro closed 10 months ago
Hey can you share a sample that reproduces this issue? It is hard to follow the flow in this query.
Actually, ignore me. I just realised even from the small things above, that I was no longer passing the authenticated credential objects to the build method but my dictionary. Apologies for the confusion.
Environment details
Steps to reproduce
I've been trying to upgrade my code from the deprecated
oauth2client.client.OAuth2Credentials
togoogle.oauth2.credentials.Credentials
without success as I continue to get the authorize attribute error being missing despite having upgraded all the librarie. Note: Although I created a brand new environment, after the first pip install I had to upgrade some libraries as there were not aligned with the above details.That said, after having obtained a token with a flow object, I then get a credential object via the
google.oauth2.credentials.Credentials
(successfully)However, by the time I pass the credentials along with the API version and name to the discovery.build method, I get the following AttributeError message.
See below the incriminated code:
and credentials dictionary
Any idea of what's wrong? Thanks!