I'm trying to follow the
docs on using batch with gdata apis however it says to run a get request against the regular feed however
1) the example fails, curl
http://www.google.com/base/feeds/items , returns 502 internal server error
2) for
https://apps-apis.google.com/a/feeds/compliance/audit/DOMAIN/USER (or any sub part) I get "Invalid request URI" ( I got the request URL from the docs on
using email audit api.
While the specific problem I'm hitting here is that I need to be able get the audit logs (specifically the Login IPs) for all the users in a domain with over 500 users and I think if I batch the API calls I can avoid the 1000 calls/domain/day limit.
I'm fairly new to google using the APIs so I might be doing it completely wrong, I'm assuming the following
1) When google say execute execute:
GET URL an unauthenticated
curl URL
should work on public facing URLs right?
2) If authentication is needed the easiest way to do this (for one off scripts and testing) is to follow
this, then extract the AUTH part and use
curl --header "Authorization: GoogleLogin auth=$AUTH" "$URL"
3) The best way to get the login IPs is to use SSO and handle the entire authentication myself, but if that isn't an option email audit is the only API that gives me what I want for a whole domain
4) Is there a better way to explore the APIs than the docs + curl?
5) Looking through gdata, it may be able to handle
batching, but I can't find any docs on using the email audit API to get account activity with it.