I am trying to use the Gmail history method discussed here: https://developers.google.com/gmail/api/v1/reference/users/history/list#examples
As a test, I am trying to figure out how to use the python code given. One of the parameters is: service: Authorized Gmail API service instance.
No datatype is given and it is unclear how to pass that in as a parameter.
I was able to download service credentials as a json and think I may be on the right track, but how would I pass in this json to properly utilize the python function that Gmail provides in the docs? Or is there some other way?