有没有人遇到过V3 Calendar API的问题,即使活动中有有效的与会者,有时候参加者数据也会返回空白状态?
活动总是有有效的与会者。
事件获取返回参与者= NULL
以下是事件查询的代码段
calendarToolsV3 cv3 = new calendarToolsV3(true, calendar, int.Parse(organisationId));
EventsResource.GetRequest gr = new EventsResource.GetRequest(cv3.service, calendar, eventId);
gr.AlwaysIncludeEmail = true;
Event evv = gr.Execute();
litDiagnosis.Text = "Summary | " + evv.Summary + "<br/>";
litDiagnosis.Text += "Id | " + evv.Id + "<br/>";
litDiagnosis.Text += "RecurringEventId | " + evv.RecurringEventId + "<br/>";
litDiagnosis.Text += "Status | " + evv.Status + "<br/>";
litDiagnosis.Text += "Visibility | " + evv.Visibility + "<br/>";
litDiagnosis.Text += "Start | " + (evv.Start == null ? evv.Start.Date.ToString() : evv.Start.DateTime.ToString() + "<br/>");
if (evv.Attendees != null && evv.Attendees.Count() > 0)
{
foreach (EventAttendee ea in evv.Attendees)
{
litDiagnosis.Text += "Attendee | " + ea.Email + "|" + ea.ResponseStatus + "<br/>";
}
}
******编辑**************
我已经做了一些进一步的测试,似乎这发生在原始APPT是经常性APPT的地方。
我正在审讯该事件的用户拒绝了该事件
该用户不再可以看到与会者。
然而,与会者可以看到活动的创造者。删除事件后,与会者再次对该用户可见?
如果事件未重复,则不会发现此行为,即使被拒绝/删除,所有用户都可以查看所有与会者?
***********************来自API探索者的示例***************
活动由admin@i3000.co创建。与会者Lisa.Jones@i3000.co查询活动并可以看到参加者
{
"kind": "calendar#event",
"etag": "\"2869345662384000\"",
"id": "7d3pmni42o6pg6taeudsskhfh8",
"status": "confirmed",
"htmlLink": "https://www.google.com/calendar/event?eid=N2QzcG1uaTQybzZwZzZ0YWV1ZHNza2hmaDhfMjAxNTA2MTlUMjIwMDAwWiBsaXNhLmpvbmVzQGkzMDAwLmNv",
"created": "2015-06-19T00:13:22.000Z",
"updated": "2015-06-19T00:13:51.192Z",
"summary": "ATTENDEE TEST",
"colorId": "11",
"creator": {
"email": "admin@i3000.co",
"displayName": "Admin User"
},
"organizer": {
"email": "admin@i3000.co",
"displayName": "Admin User"
},
"start": {
"dateTime": "2015-06-20T08:00:00+10:00",
"timeZone": "America/New_York"
},
"end": {
"dateTime": "2015-06-20T09:00:00+10:00",
"timeZone": "America/New_York"
},
"recurrence": [
"RRULE:FREQ=WEEKLY;COUNT=2;BYDAY=FR"
],
"iCalUID": "7d3pmni42o6pg6taeudsskhfh8@google.com",
"sequence": 0,
"attendees": [
{
"email": "admin@i3000.co",
"displayName": "Admin User",
"organizer": true,
"responseStatus": "accepted"
},
{
"email": "lisa.jones@i3000.co",
"displayName": "lisa jones",
"self": true,
"responseStatus": "needsAction"
}
],
"extendedProperties": {
"private": {
"ilink": "recur7d3pmni42o6pg6taeudsskhfh8"
}
},
"hangoutLink": "https://plus.google.com/hangouts/_/i3000.co/admin-lisa-jone?hceid=YWRtaW5AaTMwMDAuY28.7d3pmni42o6pg6taeudsskhfh8",
"reminders": {
"useDefault": true
}
}
Lisa.Jones再次从她的日历和查询中删除事件 - 与会者不可见
{
"kind": "calendar#event",
"etag": "\"2869346050176000\"",
"id": "7d3pmni42o6pg6taeudsskhfh8",
"status": "cancelled",
"htmlLink": "https://www.google.com/calendar/event?eid=N2QzcG1uaTQybzZwZzZ0YWV1ZHNza2hmaDhfMjAxNTA2MTlUMjIwMDAwWiBsaXNhLmpvbmVzQGkzMDAwLmNv",
"created": "2015-06-19T00:13:22.000Z",
"updated": "2015-06-19T00:17:05.088Z",
"summary": "ATTENDEE TEST",
"colorId": "11",
"creator": {
"email": "admin@i3000.co",
"displayName": "Admin User"
},
"organizer": {
"email": "admin@i3000.co",
"displayName": "Admin User"
},
"start": {
"dateTime": "2015-06-20T08:00:00+10:00",
"timeZone": "America/New_York"
},
"end": {
"dateTime": "2015-06-20T09:00:00+10:00",
"timeZone": "America/New_York"
},
"recurrence": [
"RRULE:FREQ=WEEKLY;COUNT=2;BYDAY=FR"
],
"iCalUID": "7d3pmni42o6pg6taeudsskhfh8@google.com",
"sequence": 0,
"extendedProperties": {
"private": {
"ilink": "recur7d3pmni42o6pg6taeudsskhfh8"
}
},
"hangoutLink": "https://plus.google.com/hangouts/_/i3000.co/admin-lisa-jone?hceid=YWRtaW5AaTMwMDAuY28.7d3pmni42o6pg6taeudsskhfh8",
"reminders": {
"useDefault": true
}
}
Admin@i3000.co现在删除该事件。当Lisa.Jones查询事件时,参加者再次可见
{
"kind": "calendar#event",
"etag": "\"2869346122438000\"",
"id": "7d3pmni42o6pg6taeudsskhfh8",
"status": "cancelled",
"htmlLink": "https://www.google.com/calendar/event?eid=N2QzcG1uaTQybzZwZzZ0YWV1ZHNza2hmaDhfMjAxNTA2MTlUMjIwMDAwWiBsaXNhLmpvbmVzQGkzMDAwLmNv",
"created": "2015-06-19T00:13:22.000Z",
"updated": "2015-06-19T00:17:41.219Z",
"summary": "ATTENDEE TEST",
"colorId": "11",
"creator": {
"email": "admin@i3000.co",
"displayName": "Admin User"
},
"organizer": {
"email": "admin@i3000.co",
"displayName": "Admin User"
},
"start": {
"dateTime": "2015-06-20T08:00:00+10:00",
"timeZone": "America/New_York"
},
"end": {
"dateTime": "2015-06-20T09:00:00+10:00",
"timeZone": "America/New_York"
},
"recurrence": [
"RRULE:FREQ=WEEKLY;COUNT=2;BYDAY=FR"
],
"iCalUID": "7d3pmni42o6pg6taeudsskhfh8@google.com",
"sequence": 1,
"attendees": [
{
"email": "lisa.jones@i3000.co",
"displayName": "lisa jones",
"self": true,
"responseStatus": "needsAction"
},
{
"email": "admin@i3000.co",
"displayName": "Admin User",
"organizer": true,
"responseStatus": "accepted"
}
],
"extendedProperties": {
"private": {
"ilink": "recur7d3pmni42o6pg6taeudsskhfh8"
}
},
"hangoutLink": "https://plus.google.com/hangouts/_/i3000.co/admin-lisa-jone?hceid=YWRtaW5AaTMwMDAuY28.7d3pmni42o6pg6taeudsskhfh8",
"reminders": {
"useDefault": true
}
}