Gapi.client.request and fusion tables

355 views
Skip to first unread message

Yoba

unread,
Feb 3, 2012, 12:40:22 PM2/3/12
to Google API JavaScript Client
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!

Brendan

unread,
Feb 6, 2012, 2:07:43 PM2/6/12
to Google API JavaScript Client
The JS Client, and all other API clients, support only the APIs listed
in the Explorer: http://code.google.com/apis/explorer/

Unfortunately Fusion Tables is not one of those APIs.

Milan Kosir

unread,
Oct 15, 2012, 8:00:07 AM10/15/12
to google-api-jav...@googlegroups.com
Well, Fusion tables are among APIs listed 
Please, can we get any help on how to authorize access to fusion tables with google-api-javascript-client?
Some example would be perfect!

I'm trying to use google-api-javascript-client to connect Filemaker table in my Filemaker solution with Google Fusion Table.
This is very important for my solution.
Because Oauth 2 is using web pages for authentication, I'm trying to use Filemaker webviewer (which is using IE9 engine) for this task, with no success so far.
I would only want to get access/refresh tokens and from there I want to communicate with my Fusion Table on the server directly from my Filemaker solution (using http post etc - so I want to use
Any help would be appreciated!

BR, Milan

Brendan

unread,
Oct 15, 2012, 1:55:55 PM10/15/12
to google-api-jav...@googlegroups.com
This is a new Fusion Table API which has been released since my previous message. Please read the documentation on authentication:  https://developers.google.com/fusiontables/docs/v1/using#auth

If you're doing API access on the server I recommend using another of the Google APIs clients for your server language for the server-side auth and requests.
Reply all
Reply to author
Forward
0 new messages