事件参数 kind = "calendar#event" 的用途是什么?在 google 日历中 API
What is the purpose of event parameter kind = "calendar#event". in google calendar API
事件参数的用途是什么
kind = "calendar#event"
。在 google calendar API
?
image
参考link->
https://developers.google.com/google-apps/calendar/v3/reference/events
它只是提供信息的资源标识符。
Type of the collection ("calendar#events").
它根据documentation告诉您正在使用的资源类型。
例如:
您正在从日历事件中获取数据,因此 "kind"
将是
{
"kind": "calendar#events",
"etag": "\"00000000000000000\"",
"summary": "someon@something.com",
"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": "AAAAABBBB_BBBB_AAA@group.calendar.something.com",
"summary": "My summary",
"timeZone": "UTC",
"colorId": "1",
"backgroundColor": "0000001",
"foregroundColor": "#5555555",
"selected": true,
"accessRole": "owner",
"defaultReminders": []
},
{...}
}
希望对您有所帮助。
事件参数的用途是什么
kind = "calendar#event"
。在 google calendar API
?
image
参考link->
https://developers.google.com/google-apps/calendar/v3/reference/events
它只是提供信息的资源标识符。
Type of the collection ("calendar#events").
它根据documentation告诉您正在使用的资源类型。
例如:
您正在从日历事件中获取数据,因此 "kind"
将是
{
"kind": "calendar#events",
"etag": "\"00000000000000000\"",
"summary": "someon@something.com",
"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": "AAAAABBBB_BBBB_AAA@group.calendar.something.com",
"summary": "My summary",
"timeZone": "UTC",
"colorId": "1",
"backgroundColor": "0000001",
"foregroundColor": "#5555555",
"selected": true,
"accessRole": "owner",
"defaultReminders": []
},
{...}
}
希望对您有所帮助。