2017-09-18 41 views

回答

1

集合的类型(“calendar#events”)。

它会根据documentation来告诉您正在使用的资源类型。

例如:

您都可以从日历事件数据,以便"kind"

{ 
    "kind": "calendar#events", 
    "etag": "\"00000000000000000\"", 
    "summary": "[email protected]", 
    "updated": "2098-09-16T21:11:56.805Z", 
    "timeZone": "Asia/Manila", 
    "accessRole": "owner", 
    "defaultReminders": [ 
    { 
    "method": "popup", 
    "minutes": 10 
    } 
    ] 
{...} 
} 

另一个例子是从日历颜色

{ 
    "kind": "calendar#colors", 
    "updated": "2012-02-14T00:00:00.000Z", 
    "calendar": { 
    "1": { 
    "background": "#FFFFFF", 
    "foreground": "#AAAAAA" 
    }, 
    {...} 
} 
} 

的日历列表获取数据最后一个例子,

{ 
"kind": "calendar#calendarList", 
"etag": "\"p324cv3ddpuldc0g\"", 
"nextSyncToken": "CIjPja3PqtYCEhNhbWFnbmFiZUBnb29nbGUuY29t", 
"items": [ 
    { 
    "kind": "calendar#calendarListEntry", 
    "etag": "\"00000000000000000\"", 
    "id": "[email protected]", 
    "summary": "My summary", 
    "timeZone": "UTC", 
    "colorId": "1", 
    "backgroundColor": "0000001", 
    "foregroundColor": "#5555555", 
    "selected": true, 
    "accessRole": "owner", 
    "defaultReminders": [] 
    }, 
{...} 
} 

希望这会有所帮助。

+0

我怎样才能与某人共享辅助日历并获得我与谁共享此辅助日历的人员列表?请指导我没有从Google日历api中获得任何参考。 –

1

这仅仅是信息资源标识符。