获取 Google 日历 API C# 中事件的日历 ID
Get Calendar ID of Event in Google Calendar API C#
有没有办法通过事件 class 在 Google 日历中获取事件的日历 ID?
var credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
new ClientSecrets
{
ClientId = "1079676878296-hga8cb7jgk2lmprishaiiul8vkutu33b.apps.googleusercontent.com",
ClientSecret = "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",
},
new[] { CalendarService.Scope.Calendar },
CalendarAccount,
CancellationToken.None).Result;
var service = new CalendarService(new BaseClientService.Initializer
{
HttpClientInitializer = credential,
ApplicationName = "Custom CRM",
});
var recurringEvent = service.Events.Get(eventid);
recurringEvent.Execute().Summary
喜欢我可以做的地方recurringEvent.Execute().Summary,
有没有办法做到recurringEvent.Execute().CalendarID?
执行方法returns event object.
var result = recurringEvent.Execute();
result.Id
有没有办法通过事件 class 在 Google 日历中获取事件的日历 ID?
var credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
new ClientSecrets
{
ClientId = "1079676878296-hga8cb7jgk2lmprishaiiul8vkutu33b.apps.googleusercontent.com",
ClientSecret = "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",
},
new[] { CalendarService.Scope.Calendar },
CalendarAccount,
CancellationToken.None).Result;
var service = new CalendarService(new BaseClientService.Initializer
{
HttpClientInitializer = credential,
ApplicationName = "Custom CRM",
});
var recurringEvent = service.Events.Get(eventid);
recurringEvent.Execute().Summary
喜欢我可以做的地方recurringEvent.Execute().Summary,
有没有办法做到recurringEvent.Execute().CalendarID?
执行方法returns event object.
var result = recurringEvent.Execute();
result.Id