如何使用PHP在谷歌日历中创建事件

时间:2014-05-31 11:10:42

标签: php api google-calendar-api

我尝试使用php在Google calnder中创建事件。但它没有反映在谷歌中。

我遵循此代码

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。

如何发布和获取活动。

任何人都可以建议更好的谷歌日历代码

1 个答案:

答案 0 :(得分:0)

相关问题