client_email = 'XXX'
with open("XXX") as f:
private_key = f.read()
credentials = SignedJwtAssertionCredentials(client_email, private_key, 'https://www.googleapis.com/auth/sqlservice.admin')
...
http = credentials.authorize(http)
...
service = build('analytics', 'v3', http=http)
...
accounts = service.management().accounts().list().execute()
The last call through the service object is what is causing the error.
We have added the service account email address to our Google Analytics Profile using the Analytics web UI.
Any ideas?
Thank you, Ken
--
You received this message because you are subscribed to a topic in the Google Groups "Google Analytics Reporting API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-analytics-data-export-api/F3HFuFqPy_o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-analytics-data-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to google-analytics-data-export-api+unsubscribe@googlegroups.com.