I just implemented Google Translator Toolkit API using the new google-api-java-client. Problem is, that authTokenType isn't mentioned anywhere in documentation and it seems to be important for authentication.
In the samples,
bigquery-json-clientlogin-sample is using authTokenType = "ndev";
prediction-json-clientlogin-sample is using authTokenType = "xapi";
if I use one of these two, I get the authorization token, but If I use it, I'm 403 forbidden to access the service. If I use different "whathever" I don't even get the authorization token...
Here is the client code
I found that in the old gdata client library. It is "gtrans"
But if anybody of you were gonna implement client for google APIs using the new google-api-java-client library. You have to use gdataVersion = "1.0";
instead of gdataVersion = "2.0";
because it won't work and you don't know why...
authTokenType is type of the service
gtrans Google Translator Toolkit
analytics Google Analytics Data APIs
apps Google Apps APIs
jotspot Google Sites Data API
blogger Blogger Data API
print Book Search Data API
cl Calendar Data API
codesearch Google Code Search Data API
cp Contacts Data API
structuredcontent Content API for Shopping
writely Documents List Data API
finance Finance Data API
mail Gmail Atom feed
health Health Data API
local Maps Data APIs
lh2 Picasa Web Albums Data API
annotateweb Sidewiki Data API
wise Spreadsheets Data API
sitemaps Webmaster Tools API
youtube YouTube Data API