0
votes

What is the purpose of event parameter

kind = "calendar#event"

. in google calendar API?

image

Reference link - >

https://developers.google.com/google-apps/calendar/v3/reference/events

2

2 Answers

1
votes

Type of the collection ("calendar#events").

It tells what resource type you are using base on the documentation.

For example:

You are getting data from calendar events so the "kind" will be

 {
  "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
   }
  ]
 {...}
}

Another example is to get data from calendar colors

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

Calendar List for the last example,

{
 "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": []
  },
 {...}
}

Hope this helps.

1
votes

It is just informative Resource Identifier.