Google javascript API returns 404's -


i have same code (more or less) working fine in java, when write in javascript, end 404's. can't figure out i'm doing wrong , it's driving me crazy!

    gapi.client.load('translate', 'v2', function () {         gapi.client.language.languages.list().execute(function (response) {             response.data.foreach(function(language){                 console.log(json.stringify(language));             });         }); 

"language":

{"code":404,"message":"not found","data":[{"domain":"global","reason":"notfound","message":"not found"}],"error":{"code":404,"message":"not found","data":[{"domain":"global","reason":"notfound","message":"not found"}]}} 

i can see in console following post data https://content.googleapis.com/rpc?key=my_api_key:

[{"jsonrpc":"2.0","id":"gapirpc","method":"language.languages.list","apiversion":"v1"}] 

should v1?

by contrast, rest url https://www.googleapis.com/language/translate/v2/languages?key=my_api_key (and it's get) , works fine.

you right bug in gapi.client.load. bug has been fixed , should no longer run 404s.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -