GET/users/{userId}/calendar
ユーザーの基本カレンダーを取得する。
Authorization URL - https://auth.worksmobile.com/oauth2/v2.0/authorize
Token URL - https://auth.worksmobile.com/oauth2/v2.0/token
Refresh URL - https://auth.worksmobile.com/oauth2/v2.0/token
calendar
calendar.read
Parameter | Type | Description |
---|---|---|
userId | string | ユーザーを特定するID (URLエンコードする)
required example : userf7da-f82c-4284-13e7-030f3b4c756x |
Header | type | Description |
---|---|---|
Authorization | string | Bearer {token} required |
OK
Property | Type | Description |
---|---|---|
calendarId | string | カレンダーID required |
calendarName | string | カレンダー名 required maxLength : 50 |
members | array (CalendarMember) | 共有ユーザーリスト required minItems : 0 uniqueItems : true |
description | string | カレンダー説明 |
isPublic | boolean | Default : false |
calendarEmail | string | カレンダーの固有メールアドレス |
Property | Type | Description |
---|---|---|
id | string | ユーザーID(userId)/組織ID(orgUnitId)/グループID(groupId) required |
type | string | ユーザータイプ
required Allowed values : USER, GROUP, ORGUNIT |
role | string | ユーザー権限
required Allowed values : CALENDAR_EVENT_READ_WRITE, EVENT_READ_WRITE, EVENT_READ, EVENT_READ_FREE_BUSY |
example
1{
2 "calendarName": "calendar",
3 "description": "memo",
4 "members": [
5 {
6 "id": "member1@example.com",
7 "type": "USER",
8 "role": "CALENDAR_EVENT_READ_WRITE"
9 },
10 {
11 "id": "member2@example.com",
12 "type": "USER",
13 "role": "EVENT_READ_WRITE"
14 }
15 ],
16 "calendarEmail": "calendar-96b8-4c74-8277-7953e0b4604a@jp1-groups.example.com",
17 "calendarId": "calendar-96b8-4c74-8277-7953e0b4604a",
18 "isPublic": true
19}
Forbidden
Not Found