SOLVED IT!!!

As our php class used the installed applications method to submit
items, we had to use it's version of the authentication process which
is to first send the authentication request to 
https://www.google.com/accounts/ClientLogin.

The problem we found was the variable accountType. You can have it set
to either HOSTED, GOOGLE or HOSTED_OR_GOOGLE. According to the
documentation:
http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html.

"Use HOSTED_OR_GOOGLE if you're not sure which type of account needs
authentication. If the user information matches both a hosted and a
Google account, only the hosted account is authenticated."

Now, for our feed, we use a Google Account, and not a Hosted Account,
which I think is a Google Apps Account. Could be wrong, but that's
what I found. It seems that when we requested authentication, it must
have matched both types of account and set the account type to HOSTED.
We got the token no problem, but with that token, we could not use the
normal methods, like POST to do any of the inserts, queries or
updates.

We therefore set the accountType to GOOGLE, and all is working again.

Hopefully this will help people if you have a similar problem in the
future.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Base Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to