我尝试使用php在谷歌日历中创建事件。但这并没有反映在google上。
我遵循这个代码
http://docs.dhtmlx.com/scheduler/how_to_start.html 在data.php文件中添加如下代码
include('../src/google_proxy.php');
$calendar = new GoogleCalendarProxy(
"878294925469@developer.gserviceaccount.com", // email from Google API console
"878294925469.apps.googleusercontent.com", // user id from Google API console
file_get_contents("./AIzaSyBvNVHdRZJ33lCKiGSuRWMEEd1liasGJ7A"), // private key
"35hnoajpn21hmjtk27s7rnc77g@group.calendar.google.com" // calendar id
);
我有api控制台帐户,在该帐户中只有客户端id和客户端秘密。
我不知道如何得到这些值"878294925469@developer.gserviceaccount.com"
"878294925469. apps.googleusercontent.com。
如何发布和获取事件。
谁能建议更好的谷歌日历代码
你可以从这个链接下载Google日历代码
http://www.dhtmlx.com/blog/dhtmlxscheduler-synchronization-with-google-calendar/