使用以下代码,我无法查看向我的个人资料添加服务帐户日历。当我尝试收到消息时,您无法访问{service account email}的Callender。还有什么我必须查看服务帐户日历吗?
var calender = new Calendar()
{
Description = "calendar",
Summary = "calendar",
TimeZone = "America/New_York"
};
Calendar createdCalendar = service.Calendars.Insert(calender).Execute();
var rule = new AclRule()
{
Role = "reader",
Scope = new AclRule.ScopeData()
{
Type = "default"
}
};
service.Acl.Insert(rule, createdCalendar.Id).Execute();
var services = service.Acl.List(createdCalendar.Id).Execute();
答案 0 :(得分:0)
证明您没有使用服务帐户电子邮件添加日历,而是使用日历ID。