开发者

How to access private Fusion Table from App Engine cron job?

I have created several private tables in Fusion Table. These tables should be accessed and modified regu开发者_运维百科larly by a cron job from my App Engine java web app. Could you please point me to example code or give me some guidance? And to be clear - I do not want users of my web app to gain access to the private tables, just the cron job should have access.

Regards, Dimitar Bonev


You can use ClientLogin (needs email and password :( ) or get a valid oauth token from an account with access to the tables and store it in the server, so only the cron job can access it, I used this method in my app.

some info: http://code.google.com/apis/fusiontables/docs/developers_guide.html#Authentication

cya.


I've found what I was looking for: http://ddewaele.blogspot.com/2011/05/google-fusion-tables-api-first.html


Access can be restricted even for web applications with a paid service 'Google Maps for Business' http://www.google.com/enterprise/mapsearth/

For private tables, following doc says, "Only the owner and editors have access to your table. Visualizations embedded in other websites and Google Earth network links cannot authenticate to Fusion Tables when they call for data, so the table must be Public or Unlisted for these features to work." https://developers.google.com/fusiontables/docs/v1/using#authTbl

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜