Google Translate API not working

143 views
Skip to first unread message

feedy demo

unread,
Dec 8, 2011, 9:43:47 AM12/8/11
to google-tra...@googlegroups.com
Hi,
 
Google Translate API key not working.
 
Getting:
 
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured"
}
],
"code": 403,
"message": "Access Not Configured"
}
}
 
 
Please guide to fix this error.
 
Thanks in advance
 
 

Oleksandr Karpov

unread,
Dec 13, 2011, 2:29:12 PM12/13/11
to google-tra...@googlegroups.com
Hi all,
really need an example how to translate a text with this API.
I have implemented already the following:
String googleUrl="https://www.googleapis.com/language/translate/v2?key=<My Key>";
googleUrl+="&q=";
googleUrl+=urlEncode(txtFeedback.getString());
googleUrl+="&source=";
googleUrl+=System.getProperty("microedition.locale").substring(0, 2);
googleUrl+="&target=en";
HttpConnection googlAPI = null;
DataInputStream dis = null;

StringBuffer response = new StringBuffer();
googlAPI = (HttpConnection)Connector.open(googleUrl);


googlAPI.setRequestMethod(HttpConnection.GET);
dis = new DataInputStream(googlAPI.openInputStream());
int ch;
while ((ch = dis.read()) != -1) {
response.append((char) ch);
}


String tt = response.toString();
tt = tt.substring(tt.indexOf("{"));
JSONObject js = new JSONObject(tt);
params +=js.getJSONObject("data").getJSONArray("translations").getJSONObject(0).getString("translatedText") + crlf;
but this code throws the Certificate exception: certificate was issued by an unrecognized entity
it throws the exception on my real device Samsung GT-S5230 as well as Emulator
Really need help.
Thank you all.

Google Translate API Team

unread,
Dec 21, 2011, 5:53:51 PM12/21/11
to google-tra...@googlegroups.com
Hi Feedy,

Have you enabled Billing in the APIs Console?

Thanks, 
The Google Translate API Team

Mark

unread,
Dec 28, 2011, 9:42:32 PM12/28/11
to google-tra...@googlegroups.com
Do you also need to enable Billing to get the free quota?

tweet kpop

unread,
Jan 2, 2012, 11:13:41 AM1/2/12
to google-tra...@googlegroups.com
I got the same problem.!!! what's the solution.  I already paid for google api. so I got the "enabled billing" and i also clicked the button named "complete billing". Please tell me the solution about 403 error code !! .  
Reply all
Reply to author
Forward
0 new messages