I am trying to create an SMS (text messaging) application that uses the Google Translate API to translate texts sent to it. I set up App Engine and the entire 8000-step process of choosing access to the open API API without selecting oauth, manually setting a quota limit after implementation, this did not allow me not to specify a credit card number for Google, and then set up billing, and finally go to "Edit allowed referents" on which I set:
*
... while I'm debugging what I intend to change to the actual URL where the code will live.
Using an asterisk does not work. What is the syntax of Google Translate v2 API? General API API reference rules that I must use to allow connections from anywhere in cyberspace, such as Apigee? Currently this call (with MY_KEY_HERE replaced by the actual key):
https://www.googleapis.com/language/translate/v2?key=MY_KEY_HERE&q=hello%20world&source=en&target=de
Return:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.",
"extendedHelp": "https://console.developers.google.com"
}
],
"code": 403,
"message": "Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration."
}
}
source
share