c# - Asp.Net MVC 5 with Google Calendar -


i have asp.net mvc 5 website. commented in google authentication. can register myself google login.

in application, have calendars of users. added in startup.auth.cs-file

        var googleoptions = new googleoauth2authenticationoptions()         {             clientid = configurationmanager.appsettings["clientid"],             clientsecret = configurationmanager.appsettings["clientsecret"],             callbackpath = new pathstring("/signin-google"),         };         googleoptions.scope.add(calendarservice.scope.calendar);         app.usegoogleauthentication(googleoptions); 

now user gets asked if want share calendar us. allright.

but how can save in asp.net mvc 5 google user in database , google calendar. tried many things

var calendarconnection = new calendarservice(new baseclientservice.initializer()); var calendars = calendarconnection.calendarlist.list().execute().items; 

but these things doesnt help.

i hope understand problem , can me.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -