1

我有一个包含我的客户数据库的融合表。一栏是安装日期。我希望能够在谷歌日历中查看该信息。有没有人有一个简单的方法来实现它?谢谢!

4

2 回答 2

0

因为它看起来是一个很酷的挑战,所以我在这里完成了它:

https://github.com/fontanon/google-fusiontables2calendar

它提供了一个配置文件,使每个人都可以更轻松地进行设置:

<?php 

// ::auth config::
// Google Public API Access Key. Don't forget to activate Google API for fusion tables
// Get one and configure access and perms at https://console.developers.google.com
$API_KEY="add yours";

// ::fusion tables config::
// The Fusion Tables ID (find it at fusion tables URL: the docid param)
$TABLE_ID="add yours";

// Name of columns to retrieve from the fusion table, separated by ','.
// Below ones are mandatory for building the calendar, and its position sensitive.
$COL_NAMES="summary,description,start,end,location,url";

// Date format in the fusion table. Examples: d/M/Y, Y-M-d H:i:s, YMdTHisZ ...
$DATE_FORMAT="add yours";

// ::calendar config::
// Name of your calendar
$CAL_NAME="add yours";

// Description of your calendar
$CAL_DESC="add yours";

// Timezone of your calendar. Examples: US/Pacific, Europe/Madrid
$CAL_TZ="add yours";
?>
于 2014-04-30T10:19:03.227 回答
0

我不认为这个功能已经存在,但自己做这个并不难。

您可以使用Fusion Tables的客户端库之一(例如Google APIs Client Library for PHP),然后连接到您的 Fusion Table,获取您的数据并生成 iCal 文件。然后,您可以将生成的文件导入 Google 日历,或者只在网络服务器上提供您的脚本,然后在 Google 日历中订阅您生成的日历。

我很快用 PHP编写了这样一个脚本(网址:http: //gft.rdmr.ch/examples/php/GFTCalendar.php),也许你可以从它开始,或者只是使用你最喜欢的编程语言自己做.

于 2012-08-13T15:54:05.560 回答