We have an app that is integrated with Google Apps domains, which allows domain admins to provision users in their Google Apps Domain in our web app on a nightly basis.
Previously I noticed that in cases where the admin revoked access to our app in the cpanel for the domain we would get a HTTP 403 or 401 sometimes, I kinda found this out via some manual testing on my own personal test domain. However, last week we started seeing HTTP 400s even though the request was correctly formed (GET request url and params).
I have two questions
- Anyone know where in the Provisioning API docs is there info on the various possible HTTP response codes that I can expect.
- Anyone else see the surge in HTTP 400s lately, due to some undocumented API update ?
UPDATE: The response body for the call is
<HTML> <HEAD> <TITLE>Bad Request</TITLE> </HEAD> <BODY BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\"> <H1>Bad Request</H1> <H2>Error 400</H2> </BODY> </HTML>
UPDATE2: This is the request URL I'm using
"https://apps-apis.google.com/a/feeds/#{domain}/user/2.0?alt=json"