如何从 App Engine cron 作业访问私有 Fusion 表?
我在 Fusion Table 中创建了几个私有表。这些表应该通过我的 App Engine java Web 应用程序的 cron 作业定期访问和修改。您能否指出示例代码或给我一些指导?需要明确的是 - 我不希望我的网络应用程序的用户获得对私有表的访问权限,只有 cron 作业应该具有访问权限。
问候, 迪米塔·博内夫
I have created several private tables in Fusion Table. These tables should be accessed and modified regularly 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用 ClientLogin (需要电子邮件和密码 :( )或从有权访问表的帐户获取有效的 oauth 令牌并将其存储在服务器中,因此只有 cron 作业可以访问它,我在我的应用程序中使用了此方法。
一些信息:http://code.google.com/apis/fusiontables/docs/developers_guide.html#Authentication
cya。
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.
我找到了我正在寻找的东西:
http://ddewaele.blogspot.com/2011/05 /google-fusion-tables-api-first.html
I've found what I was looking for:
http://ddewaele.blogspot.com/2011/05/google-fusion-tables-api-first.html
即使对于具有付费服务“Google Maps for Business”的网络应用程序,访问也可能受到限制
http://www.google.com/enterprise/mapsearth/
对于私有表格,请遵循文档说:“只有所有者和编辑者才能访问您的表格。其他网站和 Google Earth 网络链接中嵌入的可视化在调用数据时无法通过 Fusion Tables 进行身份验证,因此表格必须是公开的或不公开的,这些功能才能发挥作用。”
https://developers.google.com/fusiontables/docs/v1/using#authTbl
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