0


I am using Google API for freebase and this simple and a perfectly valid call is not working. I've verified from docs that I'm making correct call but chrome debugger says otherwise.

var request = gapi.client.request({'path':'freebase/v1/topic/m/0nx5r',
                                   'method':'GET'});

Please see the error as seen in JS debugger:

enter image description here

I know for sure that this method is correct. What's wrong here? Check here is the description of the call.

Maxsteel
  • 1,922
  • 4
  • 30
  • 55

1 Answers1

0

have you loaded the Google API before ? Like :

api.client.setApiKey('API KEY');
gapi.client.load('request', 'v1', callback)

i don't know what is before your else statement

DanIdle
  • 41
  • 7