├── .gitattributes
├── .nuget
├── NuGet.exe
└── NuGet.Config
├── .gitignore
├── Calendar.ASP.NET.MVC5
├── Global.asax
├── Views
│ ├── _ViewStart.cshtml
│ ├── Account
│ │ ├── ExternalLoginFailure.cshtml
│ │ ├── Login.cshtml
│ │ ├── ExternalLoginConfirmation.cshtml
│ │ └── _ExternalLoginsListPartial.cshtml
│ ├── Shared
│ │ ├── Error.cshtml
│ │ ├── Lockout.cshtml
│ │ └── _LoginPartial.cshtml
│ ├── Home
│ │ └── Index.cshtml
│ └── Web.config
├── fonts
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.ttf
│ ├── glyphicons-halflings-regular.woff
│ └── glyphicons-halflings-regular.woff2
├── App.config
├── App_Start
│ ├── FilterConfig.cs
│ ├── RouteConfig.cs
│ ├── MyClaimTypes.cs
│ ├── MyClientSecrets.cs
│ ├── MyRequestedScopes.cs
│ └── BundleConfig.cs
├── Controllers
│ └── HomeController.cs
├── Startup.cs
├── Content
│ └── Site.css
├── Global.asax.cs
├── Migrations
│ ├── 201411270135001_Init.Designer.cs
│ └── Configuration.cs
├── Models
│ ├── CalendarViewModels.cs
│ ├── IdentityModels.cs
│ └── CalendarEventGroup.cs
├── Web.Debug.config
├── Web.Release.config
└── Properties
│ └── AssemblyInfo.cs
├── Tasks.WinForms.NoteMgr
├── 126_Edit.ico
├── client_secrets.json
├── Properties
│ ├── Settings.settings
│ ├── Settings.Designer.cs
│ └── AssemblyInfo.cs
├── packages.config
└── app.config
├── UrlShortener.ShortenURL
├── google.ico
├── packages.config
├── Properties
│ └── AssemblyInfo.cs
├── app.config
└── README.html
├── Discovery.ListAPIs
├── sample_signing.snk
├── packages.config
├── README.html
├── app.config
└── Properties
│ └── AssemblyInfo.cs
├── Drive.Sample
├── client_secrets.json
├── packages.config
├── Properties
│ └── AssemblyInfo.cs
└── README.html
├── Tasks.SimpleOAuth2
├── sample_signing.snk
├── client_secrets.json
├── packages.config
├── Properties
│ └── AssemblyInfo.cs
├── app.config
└── README.html
├── Books.ListMyLibrary
├── client_secrets.json
├── packages.config
├── app.config
├── Properties
│ └── AssemblyInfo.cs
└── README.html
├── DfaReporting.Sample
├── client_secrets.json
├── packages.config
├── DfaReportingDateConverterUtil.cs
├── app.config
└── Properties
│ └── AssemblyInfo.cs
├── Tasks.ASP.NET.SimpleOAuth2
├── client_secrets.json
├── packages.config
├── Default.aspx
├── Web.Debug.config
├── Web.Release.config
├── Properties
│ └── AssemblyInfo.cs
└── Default.aspx.designer.cs
├── Tasks.CreateTasks
├── client_secrets.json
├── packages.config
├── Properties
│ └── AssemblyInfo.cs
├── app.config
└── README.html
├── Tasks.ETagCollision
├── client_secrets.json
├── packages.config
├── app.config
├── Properties
│ └── AssemblyInfo.cs
└── README.html
├── Tasks.WPF.ListTasks
├── client_secrets.json
├── Properties
│ ├── Settings.settings
│ └── Settings.Designer.cs
├── App.xaml
├── App.xaml.cs
├── MainWindow.xaml
├── packages.config
└── app.config
├── Calendar.VB.ConsoleApp
├── client_secrets.json
├── My Project
│ ├── Settings.settings
│ ├── Application.Designer.vb
│ ├── Application.myapp
│ └── AssemblyInfo.vb
├── packages.config
├── App.config
└── README.html
├── UrlShortener.ListURLs
├── client_secrets.json
├── packages.config
├── Properties
│ └── AssemblyInfo.cs
└── app.config
├── SiteVerification.VerifySite
├── client_secrets.json
├── packages.config
├── app.config
└── Properties
│ └── AssemblyInfo.cs
├── Plus.ServiceAccount
├── Properties
│ └── AssemblyInfo.cs
├── key.p12
├── packages.config
├── app.config
└── README.html
├── Translate.WP.TranslateText
├── Assets
│ ├── Logo.scale-240.png
│ ├── SmallLogo.scale-240.png
│ ├── StoreLogo.scale-240.png
│ ├── WideLogo.scale-240.png
│ ├── SplashScreen.scale-240.png
│ └── Square71x71Logo.scale-240.png
├── App.xaml
├── packages.config
├── app.config
├── Properties
│ └── AssemblyInfo.cs
├── Package.appxmanifest
└── README.html
├── Blogger.Sample
├── Blogger.Sample.Windows
│ ├── Assets
│ │ ├── Logo.scale-100.png
│ │ ├── SmallLogo.scale-100.png
│ │ ├── StoreLogo.scale-100.png
│ │ └── SplashScreen.scale-100.png
│ ├── Blogger.Sample.Windows_TemporaryKey.pfx
│ ├── ViewModel
│ │ ├── MainViewModel.cs
│ │ └── ViewModelLocator.cs
│ ├── packages.config
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── MainPage.xaml.cs
│ ├── Package.appxmanifest
│ └── MainPage.xaml
├── Blogger.Sample.WindowsPhone
│ ├── Assets
│ │ ├── Logo.scale-240.png
│ │ ├── SmallLogo.scale-240.png
│ │ ├── StoreLogo.scale-240.png
│ │ ├── WideLogo.scale-240.png
│ │ ├── SplashScreen.scale-240.png
│ │ └── Square71x71Logo.scale-240.png
│ ├── Common
│ │ └── ReadMe.txt
│ ├── ViewModel
│ │ ├── MainViewModel.cs
│ │ └── ViewModelLocator.cs
│ ├── packages.config
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── app.config
│ ├── Package.appxmanifest
│ └── MainPage.xaml
├── Blogger.Sample.Shared
│ ├── App.xaml
│ ├── Assets
│ │ └── client_secrets.json
│ ├── Blogger.Sample.Shared.shproj
│ ├── Common
│ │ └── UIUtils.cs
│ ├── ViewModel
│ │ └── PostViewModel.cs
│ ├── Blogger.Sample.Shared.projitems
│ ├── Repository
│ │ └── IBloggerRepository.cs
│ └── README.html
└── README.html
├── Discovery.VB.ListAPIs
├── My Project
│ ├── Settings.settings
│ ├── Application.Designer.vb
│ ├── Application.myapp
│ └── AssemblyInfo.vb
├── packages.config
├── README.html
├── app.config
└── Program.vb
├── AdSense.Sample
└── README.html
├── AdSenseHost.Sample
└── README.html
├── README.md
├── ResumableUpload.VB.Sample
├── My Project
│ ├── Application.Designer.vb
│ ├── Application.myapp
│ ├── Settings.settings
│ └── AssemblyInfo.vb
├── packages.config
└── README.md
├── Translate.TranslateText
├── packages.config
├── app.config
├── Properties
│ └── AssemblyInfo.cs
└── README.html
├── Discovery.FieldsParameter
├── packages.config
├── README.html
├── app.config
└── Properties
│ └── AssemblyInfo.cs
├── PageSpeedOnline.SimpleTest
├── packages.config
├── app.config
├── Properties
│ └── AssemblyInfo.cs
└── README.html
├── ResumableUpload.CS.Sample
├── Properties
│ ├── Settings.settings
│ ├── AssemblyInfo.cs
│ └── Settings.Designer.cs
├── packages.config
└── AssemblyInfo.cs
└── UrlShortener.ASP.NET
├── packages.config
├── Default.aspx
├── Web.Debug.config
├── Web.Release.config
└── Properties
└── AssemblyInfo.cs
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
2 | *.sln text eol=crlf
3 |
--------------------------------------------------------------------------------
/.nuget/NuGet.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/.nuget/NuGet.exe
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | [Bb]in
2 | [Oo]bj
3 | [Pp]ackages
4 | [Dd]ebug*/**
5 | [Rr]elease*/**
6 |
7 | Backup*
8 | *.suo
9 | *.user
10 | *.xml
11 |
--------------------------------------------------------------------------------
/Calendar.ASP.NET.MVC5/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Calendar.ASP.NET.MVC5.MvcApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/Tasks.WinForms.NoteMgr/126_Edit.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Tasks.WinForms.NoteMgr/126_Edit.ico
--------------------------------------------------------------------------------
/UrlShortener.ShortenURL/google.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/UrlShortener.ShortenURL/google.ico
--------------------------------------------------------------------------------
/Discovery.ListAPIs/sample_signing.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Discovery.ListAPIs/sample_signing.snk
--------------------------------------------------------------------------------
/Drive.Sample/client_secrets.json:
--------------------------------------------------------------------------------
1 | {
2 | "installed": {
3 | "client_id": "Enter Client ID",
4 | "client_secret": "Enter Client Secret"
5 | }
6 | }
--------------------------------------------------------------------------------
/Tasks.SimpleOAuth2/sample_signing.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Tasks.SimpleOAuth2/sample_signing.snk
--------------------------------------------------------------------------------
/Books.ListMyLibrary/client_secrets.json:
--------------------------------------------------------------------------------
1 | {
2 | "installed": {
3 | "client_id": "Enter Client ID",
4 | "client_secret": "Enter Client Secret"
5 | }
6 | }
--------------------------------------------------------------------------------
/DfaReporting.Sample/client_secrets.json:
--------------------------------------------------------------------------------
1 | {
2 | "installed": {
3 | "client_id": "Enter Client ID",
4 | "client_secret": "Enter Client Secret"
5 | }
6 | }
--------------------------------------------------------------------------------
/Tasks.ASP.NET.SimpleOAuth2/client_secrets.json:
--------------------------------------------------------------------------------
1 | {
2 | "web": {
3 | "client_id": "Enter Client ID",
4 | "client_secret": "Enter Client Secret"
5 | }
6 | }
--------------------------------------------------------------------------------
/Tasks.CreateTasks/client_secrets.json:
--------------------------------------------------------------------------------
1 | {
2 | "installed": {
3 | "client_id": "Enter Client ID",
4 | "client_secret": "Enter Client Secret"
5 | }
6 | }
--------------------------------------------------------------------------------
/Tasks.ETagCollision/client_secrets.json:
--------------------------------------------------------------------------------
1 | {
2 | "installed": {
3 | "client_id": "Enter Client ID",
4 | "client_secret": "Enter Client Secret"
5 | }
6 | }
--------------------------------------------------------------------------------
/Tasks.WPF.ListTasks/client_secrets.json:
--------------------------------------------------------------------------------
1 | {
2 | "installed": {
3 | "client_id": "Enter Client ID",
4 | "client_secret": "Enter Client Secret"
5 | }
6 | }
--------------------------------------------------------------------------------
/Calendar.VB.ConsoleApp/client_secrets.json:
--------------------------------------------------------------------------------
1 | {
2 | "installed": {
3 | "client_id": "Enter Client ID",
4 | "client_secret": "Enter Client Secret"
5 | }
6 | }
--------------------------------------------------------------------------------
/Tasks.WinForms.NoteMgr/client_secrets.json:
--------------------------------------------------------------------------------
1 | {
2 | "installed": {
3 | "client_id": "Enter Client ID",
4 | "client_secret": "Enter Client Secret"
5 | }
6 | }
--------------------------------------------------------------------------------
/UrlShortener.ListURLs/client_secrets.json:
--------------------------------------------------------------------------------
1 | {
2 | "installed": {
3 | "client_id": "Enter Client ID",
4 | "client_secret": "Enter Client Secret"
5 | }
6 | }
--------------------------------------------------------------------------------
/SiteVerification.VerifySite/client_secrets.json:
--------------------------------------------------------------------------------
1 | {
2 | "installed": {
3 | "client_id": "Enter Client ID",
4 | "client_secret": "Enter Client Secret"
5 | }
6 | }
--------------------------------------------------------------------------------
/Plus.ServiceAccount/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Plus.ServiceAccount/Properties/AssemblyInfo.cs
--------------------------------------------------------------------------------
/Translate.WP.TranslateText/Assets/Logo.scale-240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Translate.WP.TranslateText/Assets/Logo.scale-240.png
--------------------------------------------------------------------------------
/Calendar.ASP.NET.MVC5/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @* This file is added automatically by the MVC 5 application template. *@
2 |
3 | @{
4 | Layout = "~/Views/Shared/_Layout.cshtml";
5 | }
6 |
--------------------------------------------------------------------------------
/Translate.WP.TranslateText/Assets/SmallLogo.scale-240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Translate.WP.TranslateText/Assets/SmallLogo.scale-240.png
--------------------------------------------------------------------------------
/Translate.WP.TranslateText/Assets/StoreLogo.scale-240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Translate.WP.TranslateText/Assets/StoreLogo.scale-240.png
--------------------------------------------------------------------------------
/Translate.WP.TranslateText/Assets/WideLogo.scale-240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Translate.WP.TranslateText/Assets/WideLogo.scale-240.png
--------------------------------------------------------------------------------
/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 | @ViewBag.Title.
9 | Unsuccessful login with service.
10 |
11 |
--------------------------------------------------------------------------------
/Calendar.VB.ConsoleApp/My Project/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
The .NET command-line samples for the AdSense Management 6 | API have been moved to GitHub:
7 |8 | https://github.com/googleads/googleads-adsense-examples
9 | 10 | 11 | -------------------------------------------------------------------------------- /Tasks.WPF.ListTasks/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Windows; 7 | 8 | namespace Tasks.WPF.ListTasks 9 | { 10 | ///The .NET command-line samples for the AdSense Host API 6 | have been moved to GitHub:
7 |8 | https://github.com/googleads/googleads-adsensehost-examples
9 | 10 | 11 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Views/Shared/Lockout.cshtml: -------------------------------------------------------------------------------- 1 | @* This file is added automatically by the MVC 5 application template. *@ 2 | 3 | @model System.Web.Mvc.HandleErrorInfo 4 | 5 | @{ 6 | ViewBag.Title = "Locked Out"; 7 | } 8 | 9 | 10 |28 | © 2011 Google Inc 29 |
30 | 31 | 32 | -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.WindowsPhone/ViewModel/MainViewModel.cs: -------------------------------------------------------------------------------- 1 | using GalaSoft.MvvmLight; 2 | 3 | namespace Blogger.Sample.ViewModel 4 | { 5 | ///Prerequisites: Install Visual Studio, and Mercurial.
17 | 18 |cd [someDirectory]
19 | hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples
20 |
21 | Prerequisites: Install Visual Studio, and Mercurial.
17 | 18 |cd [someDirectory]
19 | hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples
20 |
21 | Prerequisites: Install Visual Studio, and Mercurial.
17 | 18 |cd [someDirectory]
19 | hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples
20 |
21 | 28 | © 2011 Google Inc
29 | 30 | 31 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Migrations/Configuration.cs: -------------------------------------------------------------------------------- 1 | // This file is added automatically by the MVC 5 application template. 2 | 3 | namespace Calendar.ASP.NET.MVC5.Migrations 4 | { 5 | using System; 6 | using System.Data.Entity; 7 | using System.Data.Entity.Migrations; 8 | using System.Linq; 9 | 10 | internal sealed class Configuration : DbMigrationsConfigurationThis sample demonstrates Google OAuth2 login as well as the Google Calendar API.
24 |25 | When you log in using your Google account, you identify yourself to ASP.NET and also provide an access token 26 | the server uses to call the Google API. 27 |
28 |29 | @if (Request.IsAuthenticated) 30 | { 31 | Upcoming Events » 32 | } 33 | else 34 | { 35 | Log in » 36 | } 37 |
38 |19 | You've successfully authenticated with @ViewBag.LoginProvider. 20 | Please enter a user name for this site below and click the Register button to finish 21 | logging in. 22 |
23 |15 | There are no external authentication services configured. See 16 | this article 17 | for details on setting up this ASP.NET application to support logging in via external services. 18 |
19 |Prerequisites: Install Visual Studio, and Mercurial.
17 | 18 |cd [someDirectory]
19 | hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples
20 |
21 | Important: after checking out the project, compiling and running it, you need to do the following: 23 |
Prerequisites: Install Visual Studio, and Mercurial.
17 | 18 |cd [someDirectory]
19 | hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples
20 |
21 | Important: after checking out the project, and before compiling 23 | and running it, you need to: 24 |
Prerequisites: Install Visual Studio, and Mercurial.
21 | 22 |
23 | cd [someDirectory]
24 | hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples
25 |
26 |
27 |
28 | Important: after checking out the project, you need to do the following: 31 |
32 | 33 |Prerequisites: Install Visual Studio, and Mercurial.
17 | 18 |cd [someDirectory]
19 | hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples
20 |
21 | Important: after checking out the project, and before compiling 23 | and running it, you need to: 24 |
Prerequisites: Install Visual Studio, and Mercurial.
21 | 22 |
23 | cd [someDirectory]
24 | hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples
25 |
26 |
27 |
28 | Important: after checking out the project, you need to do the following: 31 |
32 | 33 |Prerequisites: Install Visual Studio, and Mercurial.
16 | 17 |cd [someDirectory] hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples
18 |
19 | Important: after checking out the project, and before compiling 21 | and running it, you need to: 22 |
Prerequisites: Install Visual Studio, and Mercurial.
17 | 18 |cd [someDirectory]
19 | hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples
20 |
21 | Important: after checking out the project, and before compiling 23 | and running it, you need to: 24 |
Prerequisites: Install Visual Studio, and Mercurial.
16 | 17 |cd [someDirectory]
18 | hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples
19 |
20 | Important: after checking out the project, compiling and running it, you need to do the following: 22 |
Prerequisites: Install Visual Studio and Mercurial.
16 | 17 |cd [someDirectory]
18 | hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples
19 |
20 | Important: after checking out the project, compiling and running it, you need to do the following: 22 |
Prerequisites: Install Visual Studio, and Mercurial.
17 | 18 |cd [someDirectory]
19 | hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples
20 |
21 | Important: after checking out the project, compiling and running it, you need to do the following: 23 |
Prerequisites: Install Visual Studio, and Mercurial.
17 | 18 |cd [someDirectory]
19 | hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples
20 |
21 | Important: after checking out the project, compiling and running it, you need to do the following: 23 |
Prerequisites: Install Visual Studio, and Mercurial.
17 | 18 |cd [someDirectory] hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples
19 |
20 | Important: after checking out the project, compiling and running it, you need to do the following: 22 |
Prerequisites: Install Visual Studio, and Mercurial.
17 | 18 |cd [someDirectory]
19 | hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples
20 |
21 | Important: after checking out the project, compiling and running it, you need to do the following: 23 |