Closed GoogleCodeExporter closed 8 years ago
I have the same problem with a java app getting the 403 error. I requested and
have the api key but there is no way to set the key in the java api. Is there
any way around this issue? Should I use http calls instead of the java api to
get the translated text?
Original comment by bob.stub...@gmail.com
on 3 Dec 2010 at 4:43
There's an updated jar here (hopefully) with support for setting API keys for
use with the Translate API here:
https://github.com/downloads/cs02rm0/google-api-translate-java/google-api-transl
ate-java-0.94.jar
Just run GoogleAPI.setKey("KEY_VALUE"); before running an execute method.
There's a separate jar which it depends on here:
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/json/json/20090211/json-200902
11.jar
Should work, any problems come back and update this and I'll take a look.
Original comment by rich.mid...@gmail.com
on 13 Dec 2010 at 7:48
The updated jar google-api-translate-java-0.94.jar is not available in the
link:
https://github.com/downloads/cs02rm0/google-api-translate-java/google-api-transl
ate-java-0.94.jar
How can I get that?
Original comment by syduzzam...@gmail.com
on 21 Dec 2010 at 1:24
Apologies, it had moved here:
https://github.com/downloads/richmidwinter/google-api-translate-java/google-api-
translate-java-0.94.jar
But I've put it in the Google Code downloads now too.
Original comment by rich.mid...@gmail.com
on 21 Dec 2010 at 1:34
:-)
I want to translate a large ApplicationResources.properties file. I did set API
key in every transaction. But after certain amount translated it is returning
Google returned the following error: [403]
Suspected Terms of Service Abuse.
How can I get rid of that. Plz help
Original comment by syduzzam...@gmail.com
on 22 Dec 2010 at 3:05
What I finally did to get my application resource file translated was to use
Microsoft's Bing Translator WebService API. It didn't have any issues with
this type of 403 error.
Original comment by bob.stub...@gmail.com
on 22 Dec 2010 at 6:08
Hi, cannot get this to work, Im using v0.9.5, Ive signed up for Google Billing
for the Transalte API and added the GoogleAPI line before calling yor transaltor
GoogleAPI.setKey("API_KEY");
String result = Translate.execute(convertedEnglish, Language.ENGLISH,
googleLanguage);
But Im still getting the quota problem, what am I doing wrong ?
Original comment by paultay...@jthink.net
on 22 Oct 2011 at 8:07
I have exactly the same issue as Paul.
v0.95
GoogleAPI.setKey("*MyGoogleApiKey*");
And always get:
java.lang.Exception: Google returned the following error: [403] Quota Exceeded.
Please see http://code.google.com/apis/language/translate/overview.html
I have enabled Billing with Google.
I have set my Google API Key into Translate.
I have even upped my per/user and billable limits.
And I have configured the traffic filters to match the Translator#HttpReferrer
Has anyone managed to get this work now that it has been restricted and
requires billing? If so, how?
Original comment by william....@gmail.com
on 26 Oct 2011 at 10:04
Ah, I think this is becasue 0.95 supports V1 of the Google API, but the key
provided when billing is enabled is for V2.
There is another issue
http://code.google.com/p/google-api-translate-java/issues/detail?id=152 that is
a request to support V2.
Original comment by william....@gmail.com
on 26 Oct 2011 at 10:16
Plz enable billing by provide credit card details. Once the billing details get
verified by google wallet, only then you can use Google translation API.
Original comment by uniquesu...@gmail.com
on 22 May 2012 at 9:42
Original issue reported on code.google.com by
kmurrays...@gmail.com
on 12 Nov 2010 at 11:55