I'm trying to make a client side aplication that uses a fusion tables
as a database.
Can i use the gapi.client.request method to work with fusion tables?
I succesfully logged in but there is no way i can get the gapi cliente
request to work.
i had tried (and some variants of this):
1)
var restRequest = gapi.client.request({
'path': '
https://www.google.com/fusiontables/api/query',
'params': {'sql': 'SHOW+TABLES', 'encid': 'true'} }
});
restRequest.execute(function(resp) { alert(resp);});
2)
var restRequest = gapi.client.request({
'path': '
https://www.google.com/fusiontables/api/query?sql=SHOW
+TABLES&encid=true',
});
restRequest.execute(function(resp) { alert(resp);});
¿It is possible to use the gapi client for this? ¿What i'm doing
worng?
Thanks!