Rest API request for Google Translation API -


i have problem rest api request google translation api

my post method https://translation.googleapis.com/language/translate/v2?key=my_key

but error

{     "error": {         "code": 400,         "message": "api key not found. please pass valid api key.",         "errors": [         {             "message": "api key not found. please pass valid api key.",             "domain": "global",             "reason": "badrequest"         }         ],         "status": "invalid_argument"     } } 

please me understand problem comes from.

you might want try starting one of samples opposed trying build own client library or get/post rest. if must use rest, following example may helpful:

https://translation.googleapis.com/language/translate/v2?key=your-key-here&q=cheese&target=es 

replace api key 1 have enabled access translate api on.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -