I'm attempting to work with the Admin Audit API. I believe I have OAuth 2.0 authentication details set as they need to be but no matter what parameters I try, I always get back a nearly empty JSON response. For simplicities sake, I started with the AppEngine Buzz client at:
I made sure it worked for me with Buzz and then I switched it to using the Admin Audit API service. Here's my code changes starting at about line 67 of main.py:
else:
http = httplib2.Http()
http = credentials.authorize(http)
service = build("audit", "v1", http=http)
activities = service.activities()
activitylist = activities.list(applicationId='XXXXXXXX', customerId='XXXXXX').execute()
self.response.out.write(activitylist)
#path = os.path.join(os.path.dirname(__file__), 'welcome.html')
all I get back is:
{u'kind': u'audit#activities'}
I've also tried adding actorEmail, startDate and endDate parameters with identical results. I'm sure there has been activity on my test domain that would show up on the report. Could anybody provide a clue as to why this would be blank?
Jay