From 5674915a0d07e523756c62496588471816639c4a Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Wed, 12 Jul 2017 17:21:38 +0200 Subject: [PATCH] =?UTF-8?q?corrige=20la=20cr=C3=A9ation=20de=20l'event?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yavsc/Services/GoogleApis/CalendarManager.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Yavsc/Services/GoogleApis/CalendarManager.cs b/Yavsc/Services/GoogleApis/CalendarManager.cs index 27088cb2..32259f56 100644 --- a/Yavsc/Services/GoogleApis/CalendarManager.cs +++ b/Yavsc/Services/GoogleApis/CalendarManager.cs @@ -183,14 +183,8 @@ namespace Yavsc.Services if (string.IsNullOrWhiteSpace(calid)) throw new Exception("the calendar identifier is not specified"); - /* var computeService = new BaseClientService.Initializer() - { - HttpClientInitializer = credential - }; - computeService.ApiKey = Startup.GoogleSettings.ApiKey; - computeService.ApplicationName = "Yavsc"; */ - var service = await CreateUserCalendarServiceAsync(userId); + var service = await GetServiceAsync(); Event ev = new Event { Start = new EventDateTime { DateTime = startDate },