An ASP.NET MVC 4 applicacition that demonstrates how to obtain & manage authorization to use Google Services, and how to perform CRUD operations on a Google Calendar.
You need to update the Web.config file with your Google API Service keys (ClientId, ClientSecret and RedirectUri). You can obtain/find this information in the Google API Console
<?xml version="1.0" encoding="utf-8"?>
<configuration>
...
<appSettings>
...
<!-- GoogleAPI credentials -->
<add key="ClientId" value="{CLIENT-ID}" />
<add key="ClientSecret" value="{CLIENT-SECRETD}" />
<!-- Update the port of the Redirect URI (don't forget to set this value also in the Google API Console) -->
<add key="RedirectUri" value="http://localhost:{PORT}/Account/GoogleAuthorization" />
</appSettings>
<system.web>
...
</configuration>
</xml>
Happy coding!