Admin Audit API throwing 401 error after period of no use

18 views
Skip to first unread message

Gwyn Howell

unread,
Jul 25, 2011, 10:22:08 AM7/25/11
to google-app...@googlegroups.com
I have some working code for the Admin Audit API. It works great, except after a period of no use (say 24 hours) the API throws the following error - 401: Invalid Credentials. This happens when using the same credentials that previously worked before the period of no use. It's almost like the token is expiring (which could well be the case). Does anyone have any info or advice on this?

Jay Lee

unread,
Jul 25, 2011, 1:02:14 PM7/25/11
to google-app...@googlegroups.com
What token? ClientLogin (username/password)? Yes, those expire every 24 hours so you'll need to get a new one.

The best practice here would be to use 3-legged OAuth, once you have an OAuth access token, it won't expire until you or the user revoke it...

Jay
Reply all
Reply to author
Forward
0 new messages