在iframe上使用服务帐户投放错误创建的Google日历

时间:2014-04-07 19:55:05

标签: iframe google-calendar-api privileges google-api-php-client service-accounts

错误讯息:

此处无法显示来自一个或多个日历的事件,因为您无权查看这些日历。

这是日历列表视图。

Google_CalendarList Object
(
    [etag] => "desdHpkENZGECFHdcr5l8tYxjD4/fKIw12Ok_GJADVcrYRFYIkCE_BQ"
    [__itemsType:protected] => Google_CalendarListEntry
    [__itemsDataType:protected] => array
    [items] => Array
        (
            [0] => Google_CalendarListEntry Object
                (
                    [accessRole] => owner
                    [backgroundColor] => #b99aff
                    [colorId] => 18
                    [__defaultRemindersType:protected] => Google_EventReminder
                    [__defaultRemindersDataType:protected] => array
                    [defaultReminders] => 
                    [description] => This is the default calendar
                    [etag] => "desrHpkENZdesrdcr5l8tYxjD4/lllbKwjH1h1w2pZmsMuWm2OZ3No"
                    [foregroundColor] => #000000
                    [hidden] => false
                    [id] => dfredrescr43fgp5ir02hg2ubc@group.calendar.google.com
                    [kind] => calendar#calendarListEntry
                    [location] => 
                    [primary] => 
                    [selected] => 1
                    [summary] => This is summary
                    [summaryOverride] => 
                    [timeZone] => America/Los_Angeles
                )

        )

    [kind] => calendar#calendarList
    [nextPageToken] => 
)

想知道为什么当Calendar获得所有者权限时,我无法在我的iframe上加载此Calendar事件?

iframe代码:

  

< iframe中   SRC =“https://www.google.com/calendar/embed?title=Calendar%20Of%20Events&showNav=0&showPrint=0&showTabs=0&showTz=0&mode=AGENDA&height=550&wkst = 1&安培; BGCOLOR =%23f9f9f9&安培; SRC = fded3gtscr34de5rr02hg2ubc%40group.calendar.google.com&安培;颜色=%232F6309&安培; CTZ =美国%2FLos_Angeles”   style =“border-width:0”width =“250”height =“550”frameborder =“0”   SCROLLING = “无” >< / iframe中>

0 个答案:

没有答案