Hi All,
I am having some trouble with AJAX calls even after going through the documentation. I am trying take some input, call the Google Translate API and return the translated result. I have a Google Cloud account and a generated API key but do not see where I need to include that or where I can specify headers. Are there any examples of that?
I am trying to make a POST to the API with information like this:
Method: POST
URL: translation.googleapis.com/language/translate/v2
Headers:
Name: Content-Type
Value: application/json
Data: {"q":"Hola, ¿cómo estás?","source":"es","target":"en","format":"text"}
When I try to enter "{"q":"Hola, ¿cómo estás?","source":"es","target":"en","format":"text"}" into the "Data" field, it complains about "Syntax Error, expression ends before here at the q" if thats helpful as well
Can anyone help with this please?
Thank you