├── .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 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Calendar.ASP.NET.MVC5/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Calendar.ASP.NET.MVC5/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Translate.WP.TranslateText/Assets/SplashScreen.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Translate.WP.TranslateText/Assets/SplashScreen.scale-240.png -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.Windows/Assets/Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Blogger.Sample/Blogger.Sample.Windows/Assets/Logo.scale-100.png -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Calendar.ASP.NET.MVC5/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Calendar.ASP.NET.MVC5/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Translate.WP.TranslateText/Assets/Square71x71Logo.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Translate.WP.TranslateText/Assets/Square71x71Logo.scale-240.png -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.Windows/Assets/SmallLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Blogger.Sample/Blogger.Sample.Windows/Assets/SmallLogo.scale-100.png -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.Windows/Assets/StoreLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Blogger.Sample/Blogger.Sample.Windows/Assets/StoreLogo.scale-100.png -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.WindowsPhone/Assets/Logo.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Blogger.Sample/Blogger.Sample.WindowsPhone/Assets/Logo.scale-240.png -------------------------------------------------------------------------------- /Tasks.SimpleOAuth2/client_secrets.json: -------------------------------------------------------------------------------- 1 | { 2 | "installed": { 3 | "client_id": "42347375620-35k1vdojrt2r3o1v54m126al1rq1o5b7.apps.googleusercontent.com", 4 | "client_secret": "LAFSIiTXY7ePPMemQZISnNIs" 5 | } 6 | } -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.Windows/Assets/SplashScreen.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Blogger.Sample/Blogger.Sample.Windows/Assets/SplashScreen.scale-100.png -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.WindowsPhone/Assets/SmallLogo.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Blogger.Sample/Blogger.Sample.WindowsPhone/Assets/SmallLogo.scale-240.png -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.WindowsPhone/Assets/StoreLogo.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Blogger.Sample/Blogger.Sample.WindowsPhone/Assets/StoreLogo.scale-240.png -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.WindowsPhone/Assets/WideLogo.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Blogger.Sample/Blogger.Sample.WindowsPhone/Assets/WideLogo.scale-240.png -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.Windows/Blogger.Sample.Windows_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Blogger.Sample/Blogger.Sample.Windows/Blogger.Sample.Windows_TemporaryKey.pfx -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.WindowsPhone/Assets/SplashScreen.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Blogger.Sample/Blogger.Sample.WindowsPhone/Assets/SplashScreen.scale-240.png -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.WindowsPhone/Assets/Square71x71Logo.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/google-api-dotnet-client-samples/HEAD/Blogger.Sample/Blogger.Sample.WindowsPhone/Assets/Square71x71Logo.scale-240.png -------------------------------------------------------------------------------- /Plus.ServiceAccount/key.p12: -------------------------------------------------------------------------------- 1 | Please download key.p12 file from the Google APIs Console at https://code.google.com/apis/console/b/0/ 2 | "Create another client ID..." -> "Service Account" -> Download the certificate as "key.p12" and replace this placeholder. 3 | -------------------------------------------------------------------------------- /Tasks.WPF.ListTasks/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.Shared/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Translate.WP.TranslateText/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /Tasks.WinForms.NoteMgr/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Views/Account/ExternalLoginFailure.cshtml: -------------------------------------------------------------------------------- 1 | @* This file is added automatically by the MVC 5 application template. *@ 2 | 3 | @{ 4 | ViewBag.Title = "Login Failure"; 5 | } 6 | 7 |
8 |

@ViewBag.Title.

9 |

Unsuccessful login with service.

10 |
11 | -------------------------------------------------------------------------------- /Calendar.VB.ConsoleApp/My Project/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Discovery.VB.ListAPIs/My Project/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Views/Shared/Error.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 = "Error"; 7 | } 8 | 9 |

Error.

10 |

An error occurred while processing your request.

11 | 12 | -------------------------------------------------------------------------------- /Tasks.WPF.ListTasks/App.xaml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /AdSense.Sample/README.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Google .NET Client API – AdSense.Sample 4 | 5 |

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 | /// 11 | /// Interaction logic for App.xaml 12 | /// 13 | public partial class App : Application 14 | { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /AdSenseHost.Sample/README.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Google .NET Client API – AdSenseHost.Sample 4 | 5 |

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 |

Locked out.

11 |

This account has been locked out, please try again later.

12 |
13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## This repository is no longer under active development 2 | 3 | The https://github.com/LindaLawton/Google-Dotnet-Samples repository 4 | contains samples by Linda Lawton. Google has not created these 5 | sample projects, or the tutorials that go along with them; they are 6 | entirely unofficial in that sense, and Google takes no 7 | responsibility for their accuracy. That said, you may well still 8 | find them useful. 9 | -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.Shared/Assets/client_secrets.json: -------------------------------------------------------------------------------- 1 | { 2 | "installed": 3 | { 4 | "client_id": "Enter Client ID", 5 | "client_secret": "Enter Client Secret", 6 | "auth_uri":"https://accounts.google.com/o/oauth2/auth", 7 | "token_uri":"https://accounts.google.com/o/oauth2/token", 8 | "auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs" 9 | 10 | } 11 | } -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/App_Start/FilterConfig.cs: -------------------------------------------------------------------------------- 1 | // This file is added automatically by the MVC 5 application template. 2 | 3 | using System.Web; 4 | using System.Web.Mvc; 5 | 6 | namespace Calendar.ASP.NET.MVC5 7 | { 8 | public class FilterConfig 9 | { 10 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) 11 | { 12 | filters.Add(new HandleErrorAttribute()); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | // This file is added automatically by the MVC 5 application template. 2 | // Some unnecessary code has been removed for the purpose of this sample. 3 | 4 | using System.Web.Mvc; 5 | 6 | namespace Calendar.ASP.NET.MVC5.Controllers 7 | { 8 | public class HomeController : Controller 9 | { 10 | public ActionResult Index() 11 | { 12 | return View(); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Startup.cs: -------------------------------------------------------------------------------- 1 | // This file is added automatically by the MVC 5 application template. 2 | 3 | using Microsoft.Owin; 4 | using Owin; 5 | 6 | [assembly: OwinStartupAttribute(typeof(Calendar.ASP.NET.MVC5.Startup))] 7 | namespace Calendar.ASP.NET.MVC5 8 | { 9 | public partial class Startup 10 | { 11 | public void Configuration(IAppBuilder app) 12 | { 13 | ConfigureAuth(app); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Calendar.VB.ConsoleApp/My Project/Application.Designer.vb: -------------------------------------------------------------------------------- 1 | '------------------------------------------------------------------------------ 2 | ' 3 | ' This code was generated by a tool. 4 | ' Runtime Version:4.0.30319.42000 5 | ' 6 | ' Changes to this file may cause incorrect behavior and will be lost if 7 | ' the code is regenerated. 8 | ' 9 | '------------------------------------------------------------------------------ 10 | 11 | Option Strict On 12 | Option Explicit On 13 | 14 | -------------------------------------------------------------------------------- /Discovery.VB.ListAPIs/My Project/Application.Designer.vb: -------------------------------------------------------------------------------- 1 | '------------------------------------------------------------------------------ 2 | ' 3 | ' This code was generated by a tool. 4 | ' Runtime Version:4.0.30319.42000 5 | ' 6 | ' Changes to this file may cause incorrect behavior and will be lost if 7 | ' the code is regenerated. 8 | ' 9 | '------------------------------------------------------------------------------ 10 | 11 | Option Strict On 12 | Option Explicit On 13 | 14 | -------------------------------------------------------------------------------- /ResumableUpload.VB.Sample/My Project/Application.Designer.vb: -------------------------------------------------------------------------------- 1 | '------------------------------------------------------------------------------ 2 | ' 3 | ' This code was generated by a tool. 4 | ' Runtime Version:4.0.30319.34209 5 | ' 6 | ' Changes to this file may cause incorrect behavior and will be lost if 7 | ' the code is regenerated. 8 | ' 9 | '------------------------------------------------------------------------------ 10 | 11 | Option Strict On 12 | Option Explicit On 13 | 14 | -------------------------------------------------------------------------------- /Calendar.VB.ConsoleApp/My Project/Application.myapp: -------------------------------------------------------------------------------- 1 | 2 | 3 | false 4 | false 5 | 0 6 | true 7 | 0 8 | 2 9 | true 10 | 11 | -------------------------------------------------------------------------------- /Discovery.VB.ListAPIs/My Project/Application.myapp: -------------------------------------------------------------------------------- 1 | 2 | 3 | false 4 | false 5 | 0 6 | true 7 | 0 8 | 2 9 | true 10 | 11 | -------------------------------------------------------------------------------- /ResumableUpload.VB.Sample/My Project/Application.myapp: -------------------------------------------------------------------------------- 1 | 2 | 3 | false 4 | false 5 | 0 6 | true 7 | 0 8 | 2 9 | true 10 | 11 | -------------------------------------------------------------------------------- /Discovery.ListAPIs/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Discovery.VB.ListAPIs/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Translate.TranslateText/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Discovery.FieldsParameter/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /PageSpeedOnline.SimpleTest/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ResumableUpload.VB.Sample/My Project/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /ResumableUpload.CS.Sample/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.WindowsPhone/Common/ReadMe.txt: -------------------------------------------------------------------------------- 1 | The Common directory contains classes that simplify application development. 2 | 3 | Classes in the Common directory form part of your project and may be further enhanced to meet your 4 | needs. Care should be taken when altering existing methods and properties as incompatible changes 5 | will require corresponding changes to code included in a variety of Visual Studio templates. For 6 | example, additional pages added to your project are written assuming that the original methods and 7 | properties in Common classes are still present and that the names of the types have not changed. -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Content/Site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Set padding to keep content from hitting the edges */ 7 | .body-content { 8 | padding-left: 15px; 9 | padding-right: 15px; 10 | } 11 | 12 | /* Override the default bootstrap behavior where horizontal description lists 13 | will truncate terms that are too long to fit in the left column 14 | */ 15 | .dl-horizontal dt { 16 | white-space: normal; 17 | } 18 | 19 | /* Set width on the form input elements since they're 100% wide by default */ 20 | input, 21 | select, 22 | textarea { 23 | max-width: 280px; 24 | } 25 | -------------------------------------------------------------------------------- /Tasks.WPF.ListTasks/MainWindow.xaml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Views/Account/Login.cshtml: -------------------------------------------------------------------------------- 1 | @* 2 | This file is added automatically by the MVC 5 application template. 3 | Some unnecessary code has been removed for the purpose of this sample. 4 | *@ 5 | 6 | @using Calendar.ASP.NET.MVC5.Models 7 | @model LoginViewModel 8 | @{ 9 | ViewBag.Title = "Log in"; 10 | } 11 | 12 |

@ViewBag.Title.

13 |
14 |
15 |
16 | @Html.Partial("_ExternalLoginsListPartial", new ExternalLoginListViewModel { ReturnUrl = ViewBag.ReturnUrl }) 17 |
18 |
19 |
20 | 21 | @section Scripts { 22 | @Scripts.Render("~/bundles/jqueryval") 23 | } -------------------------------------------------------------------------------- /Drive.Sample/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Books.ListMyLibrary/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Plus.ServiceAccount/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Tasks.CreateTasks/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Tasks.ETagCollision/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Tasks.SimpleOAuth2/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Tasks.WPF.ListTasks/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Tasks.WinForms.NoteMgr/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Calendar.VB.ConsoleApp/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /DfaReporting.Sample/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Tasks.ASP.NET.SimpleOAuth2/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /UrlShortener.ASP.NET/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /UrlShortener.ListURLs/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /UrlShortener.ShortenURL/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ResumableUpload.CS.Sample/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ResumableUpload.VB.Sample/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /SiteVerification.VerifySite/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Global.asax.cs: -------------------------------------------------------------------------------- 1 | // This file is added automatically by the MVC 5 application template. 2 | 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Web; 7 | using System.Web.Mvc; 8 | using System.Web.Optimization; 9 | using System.Web.Routing; 10 | 11 | namespace Calendar.ASP.NET.MVC5 12 | { 13 | public class MvcApplication : System.Web.HttpApplication 14 | { 15 | protected void Application_Start() 16 | { 17 | AreaRegistration.RegisterAllAreas(); 18 | FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); 19 | RouteConfig.RegisterRoutes(RouteTable.Routes); 20 | BundleConfig.RegisterBundles(BundleTable.Bundles); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/App_Start/RouteConfig.cs: -------------------------------------------------------------------------------- 1 | // This file is added automatically by the MVC 5 application template. 2 | 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Web; 7 | using System.Web.Mvc; 8 | using System.Web.Routing; 9 | 10 | namespace Calendar.ASP.NET.MVC5 11 | { 12 | public class RouteConfig 13 | { 14 | public static void RegisterRoutes(RouteCollection routes) 15 | { 16 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 17 | 18 | routes.MapRoute( 19 | name: "Default", 20 | url: "{controller}/{action}/{id}", 21 | defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } 22 | ); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Translate.WP.TranslateText/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/App_Start/MyClaimTypes.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 Google Inc 3 | 4 | Licensed under the Apache License, Version 2.0(the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Collections.Generic; 19 | using System.Linq; 20 | using System.Web; 21 | 22 | namespace Calendar.ASP.NET.MVC5 23 | { 24 | internal static class MyClaimTypes 25 | { 26 | public const string GoogleUserId = "GoogleUserId"; 27 | } 28 | } -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Views/Shared/_LoginPartial.cshtml: -------------------------------------------------------------------------------- 1 | @* 2 | This file is added automatically by the MVC 5 application template. 3 | Some unnecessary code has been removed for the purpose of this sample. 4 | *@ 5 | 6 | @using Microsoft.AspNet.Identity 7 | @if (Request.IsAuthenticated) 8 | { 9 | using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" })) 10 | { 11 | @Html.AntiForgeryToken() 12 | 13 | 17 | } 18 | } 19 | else 20 | { 21 | 24 | } 25 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Migrations/201411270135001_Init.Designer.cs: -------------------------------------------------------------------------------- 1 | // 2 | namespace Calendar.ASP.NET.MVC5.Migrations 3 | { 4 | using System.CodeDom.Compiler; 5 | using System.Data.Entity.Migrations; 6 | using System.Data.Entity.Migrations.Infrastructure; 7 | using System.Resources; 8 | 9 | [GeneratedCode("EntityFramework.Migrations", "6.1.1-30610")] 10 | public sealed partial class Init : IMigrationMetadata 11 | { 12 | private readonly ResourceManager Resources = new ResourceManager(typeof(Init)); 13 | 14 | string IMigrationMetadata.Id 15 | { 16 | get { return "201411270135001_Init"; } 17 | } 18 | 19 | string IMigrationMetadata.Source 20 | { 21 | get { return null; } 22 | } 23 | 24 | string IMigrationMetadata.Target 25 | { 26 | get { return Resources.GetString("Target"); } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Translate.WP.TranslateText/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.Shared/Blogger.Sample.Shared.shproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 56d74b15-1902-49e0-a8a4-124addce04db 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.Windows/ViewModel/MainViewModel.cs: -------------------------------------------------------------------------------- 1 | using GalaSoft.MvvmLight; 2 | 3 | namespace Blogger.Sample.ViewModel 4 | { 5 | /// 6 | /// This class contains properties that the main View can data bind to. 7 | /// 8 | /// Use the mvvminpc snippet to add bindable properties to this ViewModel. 9 | /// 10 | /// 11 | /// You can also use Blend to data bind with the tool's support. 12 | /// 13 | /// 14 | /// See http://www.galasoft.ch/mvvm 15 | /// 16 | /// 17 | public class MainViewModel : ViewModelBase 18 | { 19 | /// 20 | /// Initializes a new instance of the MainViewModel class. 21 | /// 22 | public MainViewModel() 23 | { 24 | ////if (IsInDesignMode) 25 | ////{ 26 | //// // Code runs in Blend --> create design time data. 27 | ////} 28 | ////else 29 | ////{ 30 | //// // Code runs "for real" 31 | ////} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /Tasks.ASP.NET.SimpleOAuth2/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" 2 | EnableSessionState="true" 3 | AutoEventWireup="true" 4 | CodeBehind="Default.aspx.cs" 5 | Async="true" 6 | Inherits="Tasks.ASP.NET.SimpleOAuth2._Default" %> 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |

ASP.NET Tasks API – OAuth2 Sample

16 |
17 | Click the button below to authorize this application/list all TaskLists and Tasks. 18 |

19 |
20 |     22 |
23 |
24 |
25 | 26 |
27 |

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 | /// 6 | /// This class contains properties that the main View can data bind to. 7 | /// 8 | /// Use the mvvminpc snippet to add bindable properties to this ViewModel. 9 | /// 10 | /// 11 | /// You can also use Blend to data bind with the tool's support. 12 | /// 13 | /// 14 | /// See http://www.galasoft.ch/mvvm 15 | /// 16 | /// 17 | public class MainViewModel : ViewModelBase 18 | { 19 | /// 20 | /// Initializes a new instance of the MainViewModel class. 21 | /// 22 | public MainViewModel() 23 | { 24 | ////if (IsInDesignMode) 25 | ////{ 26 | //// // Code runs in Blend --> create design time data. 27 | ////} 28 | ////else 29 | ////{ 30 | //// // Code runs "for real" 31 | ////} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.Windows/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.WindowsPhone/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Discovery.ListAPIs/README.html: -------------------------------------------------------------------------------- 1 | 2 | Google .NET Client API – Discovery.ListAPIs 3 | 4 |

Instructions for the Google .NET Client API – Discovery.ListAPIs

5 | 6 |

Browse Online

7 | 8 | 12 | 13 |

1. Checkout Instructions

14 | 15 |

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 |

Setup Project in Visual Studio

22 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Models/CalendarViewModels.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 Google Inc 3 | 4 | Licensed under the Apache License, Version 2.0(the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | using System.Collections.Generic; 18 | using System.ComponentModel.DataAnnotations; 19 | 20 | namespace Calendar.ASP.NET.MVC5.Models 21 | { 22 | /// 23 | /// A view model for the UpcomingEvents view. 24 | /// 25 | public class UpcomingEventsViewModel 26 | { 27 | /// 28 | /// Gets or sets a sequence of event groups to display. 29 | /// 30 | [Required] 31 | public IEnumerable EventGroups { get; set; } 32 | } 33 | } -------------------------------------------------------------------------------- /Discovery.VB.ListAPIs/README.html: -------------------------------------------------------------------------------- 1 | 2 | Google .NET Client API – Discovery.VB.ListAPIs 3 | 4 |

Instructions for the Google .NET Client API – Discovery.VB.ListAPIs

5 | 6 |

Browse Online

7 | 8 | 12 | 13 |

1. Checkout Instructions

14 | 15 |

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 |

Setup Project in Visual Studio

22 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Tasks.WPF.ListTasks/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Tasks.WPF.ListTasks.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Discovery.FieldsParameter/README.html: -------------------------------------------------------------------------------- 1 | 2 | Google .NET Client API – Discovery.FieldsParameter 3 | 4 |

Instructions for the Google .NET Client API – Discovery.FieldsParameter

5 | 6 |

Browse Online

7 | 8 | 12 | 13 |

1. Checkout Instructions

14 | 15 |

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 |

Setup Project in Visual Studio

22 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Tasks.WinForms.NoteMgr/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace TasksExample.WinForms.NoteMgr.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Translate.WP.TranslateText/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Translate.WP.TranslateText")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Translate.WP.TranslateText")] 13 | [assembly: AssemblyCopyright("Copyright © Google Inc 2014")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | // You can specify all the values or you can default the Build and Revision Numbers 25 | // by using the '*' as shown below: 26 | // [assembly: AssemblyVersion("1.0.*")] 27 | [assembly: AssemblyVersion("1.0.0.0")] 28 | [assembly: AssemblyFileVersion("1.0.0.0")] 29 | [assembly: ComVisible(false)] -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.Windows/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Blogger.Sample.Windows")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Google Inc")] 12 | [assembly: AssemblyProduct("Blogger.Sample")] 13 | [assembly: AssemblyCopyright("Copyright © Google Inc 2014")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | // You can specify all the values or you can default the Build and Revision Numbers 25 | // by using the '*' as shown below: 26 | // [assembly: AssemblyVersion("1.0.*")] 27 | [assembly: AssemblyVersion("1.0.0.0")] 28 | [assembly: AssemblyFileVersion("1.0.0.0")] 29 | [assembly: ComVisible(false)] -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.Shared/Common/UIUtils.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2014 Google Inc 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Threading.Tasks; 19 | using Windows.ApplicationModel.Core; 20 | using Windows.UI.Core; 21 | 22 | namespace Blogger.Sample.Common 23 | { 24 | public class UIUtils 25 | { 26 | /// Invokes the specified action from the UI thread. 27 | public static async Task InvokeFromUIThread(Action action) 28 | { 29 | await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync( 30 | CoreDispatcherPriority.Normal, 31 | () => action()); 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/App_Start/MyClientSecrets.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 Google Inc 3 | 4 | Licensed under the Apache License, Version 2.0(the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Collections.Generic; 19 | using System.Linq; 20 | using System.Web; 21 | 22 | namespace Calendar.ASP.NET.MVC5 23 | { 24 | /// 25 | /// Holds the Google API client secrets. Replace the values below with credentials from your developer console 26 | /// (https://console.developers.google.com). 27 | /// 28 | internal static class MyClientSecrets 29 | { 30 | public const string ClientId = "YOUR CLIENT ID HERE"; 31 | public const string ClientSecret = "YOUR CLIENT SECRET HERE"; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.WindowsPhone/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Blogger.Sample.WindowsPhone")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Google Inc")] 12 | [assembly: AssemblyProduct("Blogger.Sample")] 13 | [assembly: AssemblyCopyright("Copyright © Google Inc 2014")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | // You can specify all the values or you can default the Build and Revision Numbers 25 | // by using the '*' as shown below: 26 | // [assembly: AssemblyVersion("1.0.*")] 27 | [assembly: AssemblyVersion("1.0.0.0")] 28 | [assembly: AssemblyFileVersion("1.0.0.0")] 29 | [assembly: ComVisible(false)] -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/App_Start/MyRequestedScopes.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 Google Inc 3 | 4 | Licensed under the Apache License, Version 2.0(the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Collections.Generic; 19 | using System.Linq; 20 | using System.Web; 21 | 22 | using Google.Apis.Calendar.v3; 23 | 24 | namespace Calendar.ASP.NET.MVC5 25 | { 26 | internal static class MyRequestedScopes 27 | { 28 | public static string[] Scopes 29 | { 30 | get 31 | { 32 | return new[] { 33 | "openid", 34 | "email", 35 | CalendarService.Scope.CalendarReadonly, 36 | }; 37 | } 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.WindowsPhone/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /UrlShortener.ASP.NET/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="UrlShortener.ASP.NET._Default" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Urlshortener ASP.NET sample

11 |
12 |

13 | Please enter a shortened or a long url into the textbox, and press the button next to it. 14 |

15 |
16 |     17 | 19 | 20 | 21 |
22 |

23 |     24 | 25 |

26 |
27 |

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 : DbMigrationsConfiguration 11 | { 12 | public Configuration() 13 | { 14 | AutomaticMigrationsEnabled = false; 15 | } 16 | 17 | protected override void Seed(Calendar.ASP.NET.MVC5.Models.ApplicationDbContext context) 18 | { 19 | // This method will be called after migrating to the latest version. 20 | 21 | // You can use the DbSet.AddOrUpdate() helper extension method 22 | // to avoid creating duplicate seed data. E.g. 23 | // 24 | // context.People.AddOrUpdate( 25 | // p => p.FullName, 26 | // new Person { FullName = "Andrew Peters" }, 27 | // new Person { FullName = "Brice Lambson" }, 28 | // new Person { FullName = "Rowan Miller" } 29 | // ); 30 | // 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Discovery.ListAPIs/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Discovery.VB.ListAPIs/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Discovery.FieldsParameter/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /PageSpeedOnline.SimpleTest/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Translate.TranslateText/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Calendar.VB.ConsoleApp/My Project/AssemblyInfo.vb: -------------------------------------------------------------------------------- 1 | Imports System 2 | Imports System.Reflection 3 | Imports System.Runtime.InteropServices 4 | 5 | ' General Information about an assembly is controlled through the following 6 | ' set of attributes. Change these attribute values to modify the information 7 | ' associated with an assembly. 8 | 9 | ' Review the values of the assembly attributes 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 'The following GUID is for the ID of the typelib if this project is exposed to COM 21 | 22 | 23 | ' Version information for an assembly consists of the following four values: 24 | ' 25 | ' Major Version 26 | ' Minor Version 27 | ' Build Number 28 | ' Revision 29 | ' 30 | ' You can specify all the values or you can default the Build and Revision Numbers 31 | ' by using the '*' as shown below: 32 | ' 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Discovery.VB.ListAPIs/My Project/AssemblyInfo.vb: -------------------------------------------------------------------------------- 1 | Imports System 2 | Imports System.Reflection 3 | Imports System.Runtime.InteropServices 4 | 5 | ' General Information about an assembly is controlled through the following 6 | ' set of attributes. Change these attribute values to modify the information 7 | ' associated with an assembly. 8 | 9 | ' Review the values of the assembly attributes 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 'The following GUID is for the ID of the typelib if this project is exposed to COM 21 | 22 | 23 | ' Version information for an assembly consists of the following four values: 24 | ' 25 | ' Major Version 26 | ' Minor Version 27 | ' Build Number 28 | ' Revision 29 | ' 30 | ' You can specify all the values or you can default the Build and Revision Numbers 31 | ' by using the '*' as shown below: 32 | ' 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /ResumableUpload.VB.Sample/My Project/AssemblyInfo.vb: -------------------------------------------------------------------------------- 1 | Imports System 2 | Imports System.Reflection 3 | Imports System.Runtime.InteropServices 4 | 5 | ' General Information about an assembly is controlled through the following 6 | ' set of attributes. Change these attribute values to modify the information 7 | ' associated with an assembly. 8 | 9 | ' Review the values of the assembly attributes 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 'The following GUID is for the ID of the typelib if this project is exposed to COM 21 | 22 | 23 | ' Version information for an assembly consists of the following four values: 24 | ' 25 | ' Major Version 26 | ' Minor Version 27 | ' Build Number 28 | ' Revision 29 | ' 30 | ' You can specify all the values or you can default the Build and Revision Numbers 31 | ' by using the '*' as shown below: 32 | ' 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /UrlShortener.ASP.NET/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Tasks.ASP.NET.SimpleOAuth2/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.Windows/MainPage.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2014 Google Inc 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | using Windows.UI.Xaml.Controls; 18 | 19 | using Blogger.Sample.Repository; 20 | using Blogger.Sample.ViewModel; 21 | 22 | // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238 23 | 24 | namespace Blogger.Sample 25 | { 26 | /// 27 | /// An empty page that can be used on its own or navigated to within a Frame. 28 | /// 29 | public sealed partial class MainPage : Page 30 | { 31 | public MainPage() 32 | { 33 | this.InitializeComponent(); 34 | // In a real application consider injecting your VM and repository. 35 | this.DataContext = new BlogsViewModel(new BloggerRepository()); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Web.Release.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 19 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Views/Home/Index.cshtml: -------------------------------------------------------------------------------- 1 | @* 2 | Copyright 2015 Google Inc 3 | 4 | Licensed under the Apache License, Version 2.0(the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | *@ 16 | 17 | @{ 18 | ViewBag.Title = "Home Page"; 19 | } 20 | 21 |
22 |

Calendar Sample

23 |

This 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 |
39 | -------------------------------------------------------------------------------- /UrlShortener.ASP.NET/Web.Release.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 19 | 30 | 31 | -------------------------------------------------------------------------------- /Tasks.ASP.NET.SimpleOAuth2/Web.Release.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 19 | 30 | 31 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Models/IdentityModels.cs: -------------------------------------------------------------------------------- 1 | // This file is added automatically by the MVC 5 application template. 2 | 3 | using System.Data.Entity; 4 | using System.Security.Claims; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNet.Identity; 7 | using Microsoft.AspNet.Identity.EntityFramework; 8 | 9 | namespace Calendar.ASP.NET.MVC5.Models 10 | { 11 | // You can add profile data for the user by adding more properties to your ApplicationUser class, please visit 12 | // http://go.microsoft.com/fwlink/?LinkID=317594 to learn more. 13 | public class ApplicationUser : IdentityUser 14 | { 15 | public async Task GenerateUserIdentityAsync(UserManager manager) 16 | { 17 | // Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType 18 | var userIdentity = await manager.CreateIdentityAsync(this, DefaultAuthenticationTypes.ApplicationCookie); 19 | // Add custom user claims here 20 | return userIdentity; 21 | } 22 | } 23 | 24 | public class ApplicationDbContext : IdentityDbContext 25 | { 26 | public ApplicationDbContext() 27 | : base("DefaultConnection", throwIfV1Schema: false) 28 | { 29 | } 30 | 31 | public static ApplicationDbContext Create() 32 | { 33 | return new ApplicationDbContext(); 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/App_Start/BundleConfig.cs: -------------------------------------------------------------------------------- 1 | // This file is added automatically by the MVC 5 application template. 2 | 3 | using System.Web; 4 | using System.Web.Optimization; 5 | 6 | namespace Calendar.ASP.NET.MVC5 7 | { 8 | public class BundleConfig 9 | { 10 | // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 11 | public static void RegisterBundles(BundleCollection bundles) 12 | { 13 | bundles.Add(new ScriptBundle("~/bundles/jquery").Include( 14 | "~/Scripts/jquery-{version}.js")); 15 | 16 | bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( 17 | "~/Scripts/jquery.validate*")); 18 | 19 | // Use the development version of Modernizr to develop with and learn from. Then, when you're 20 | // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. 21 | bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( 22 | "~/Scripts/modernizr-*")); 23 | 24 | bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( 25 | "~/Scripts/bootstrap.js", 26 | "~/Scripts/respond.js")); 27 | 28 | bundles.Add(new StyleBundle("~/Content/css").Include( 29 | "~/Content/bootstrap.css", 30 | "~/Content/site.css")); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.Windows/Package.appxmanifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | Blogger.Sample.Windows 10 | peleyal 11 | Assets\StoreLogo.png 12 | 13 | 14 | 15 | 6.3.0 16 | 6.3.0 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 27 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.Shared/ViewModel/PostViewModel.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2014 Google Inc 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | using GalaSoft.MvvmLight; 18 | 19 | namespace Blogger.Sample.ViewModel 20 | { 21 | /// A single post view model. 22 | public class PostViewModel : ViewModelBase 23 | { 24 | private string content; 25 | /// Gets or sets the post content. 26 | public string Content 27 | { 28 | get { return content; } 29 | set 30 | { 31 | Set(() => Content, ref content, value); 32 | } 33 | } 34 | 35 | private string title; 36 | /// Gets or sets the post title. 37 | public string Title 38 | { 39 | get { return title; } 40 | set 41 | { 42 | Set(() => Title, ref title, value); 43 | } 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /DfaReporting.Sample/DfaReportingDateConverterUtil.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2014 Google Inc 3 | 4 | Licensed under the Apache License, Version 2.0(the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | using System; 18 | 19 | namespace DfaReporting.Sample 20 | { 21 | /// 22 | /// This simple utility converts DateTime objects to the string format that the DFA Reporting API 23 | /// always expects dates to be in. 24 | /// 25 | internal static class DfaReportingDateConverterUtil 26 | { 27 | private const string DateFormat = "yyyy-MM-dd"; 28 | 29 | /// 30 | /// Takes a DateTime object and converts it to the proper string format for the 31 | /// Dfa Reporting API. 32 | /// 33 | /// The date to be converted. 34 | /// The given date in the proper format. 35 | public static string convert(DateTime date) 36 | { 37 | return date.ToString(DateFormat); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Tasks.SimpleOAuth2/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | // General Information about an assembly is controlled through the following 5 | // set of attributes. Change these attribute values to modify the information 6 | // associated with an assembly. 7 | [assembly: AssemblyTitle("Tasks.SimpleOAuth2")] 8 | [assembly: AssemblyDescription("")] 9 | [assembly: AssemblyConfiguration("")] 10 | [assembly: AssemblyCompany("Google Inc")] 11 | [assembly: AssemblyProduct("Tasks.SimpleOAuth2")] 12 | [assembly: AssemblyCopyright("Copyright © Google Inc 2011")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | 16 | // Setting ComVisible to false makes the types in this assembly not visible 17 | // to COM components. If you need to access a type in this assembly from 18 | // COM, set the ComVisible attribute to true on that type. 19 | [assembly: ComVisible(false)] 20 | 21 | // The following GUID is for the ID of the typelib if this project is exposed to COM 22 | [assembly: Guid("5cd7a01f-6233-47da-8860-c515e7c05511")] 23 | 24 | // Version information for an assembly consists of the following four values: 25 | // 26 | // Major Version 27 | // Minor Version 28 | // Build Number 29 | // Revision 30 | // 31 | // You can specify all the values or you can default the Build and Revision Numbers 32 | // by using the '*' as shown below: 33 | // [assembly: AssemblyVersion("1.0.*")] 34 | [assembly: AssemblyVersion("1.0.0.0")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /UrlShortener.ASP.NET/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("UrlShortener.ASP.NET")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("UrlShortener.ASP.NET")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("f402a950-432b-4bf0-b021-964e8da8e686")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Revision and Build Numbers 33 | // by using the '*' as shown below: 34 | [assembly: AssemblyVersion("1.0.0.0")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /UrlShortener.ListURLs/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | // General Information about an assembly is controlled through the following 5 | // set of attributes. Change these attribute values to modify the information 6 | // associated with an assembly. 7 | [assembly: AssemblyTitle("UrlShortener.ListURLs")] 8 | [assembly: AssemblyDescription("")] 9 | [assembly: AssemblyConfiguration("")] 10 | [assembly: AssemblyCompany("Google Inc")] 11 | [assembly: AssemblyProduct("UrlShortener.ListURLs")] 12 | [assembly: AssemblyCopyright("Copyright © Google Inc 2011")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | 16 | // Setting ComVisible to false makes the types in this assembly not visible 17 | // to COM components. If you need to access a type in this assembly from 18 | // COM, set the ComVisible attribute to true on that type. 19 | [assembly: ComVisible(false)] 20 | 21 | // The following GUID is for the ID of the typelib if this project is exposed to COM 22 | [assembly: Guid("a9aca0ea-7fb7-44ee-8874-dcc4519ffe0d")] 23 | 24 | // Version information for an assembly consists of the following four values: 25 | // 26 | // Major Version 27 | // Minor Version 28 | // Build Number 29 | // Revision 30 | // 31 | // You can specify all the values or you can default the Build and Revision Numbers 32 | // by using the '*' as shown below: 33 | // [assembly: AssemblyVersion("1.0.*")] 34 | [assembly: AssemblyVersion("1.0.0.0")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Models/CalendarEventGroup.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 Google Inc 3 | 4 | Licensed under the Apache License, Version 2.0(the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | using System.Collections.Generic; 18 | using System.ComponentModel.DataAnnotations; 19 | 20 | using Google.Apis.Calendar.v3.Data; 21 | 22 | namespace Calendar.ASP.NET.MVC5.Models 23 | { 24 | /// 25 | /// A labeled group of calendar events. 26 | /// 27 | /// 28 | /// This sample groups calendar events by day, so the group title is a formatted date string. 29 | /// 30 | public class CalendarEventGroup 31 | { 32 | /// 33 | /// Gets or sets a string to show above the group of events. 34 | /// 35 | [Required] 36 | public string GroupTitle { get; set; } 37 | /// 38 | /// Gets or sets a sequence of calendar events to show under the group title. 39 | /// 40 | [Required] 41 | public IEnumerable Events { get; set; } 42 | } 43 | } -------------------------------------------------------------------------------- /Drive.Sample/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Drive.Sample")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Google")] 12 | [assembly: AssemblyProduct("Drive.Sample")] 13 | [assembly: AssemblyCopyright("Copyright © Google 2013")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("14001d69-d1ae-474b-9cd7-2a95731b8417")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Tasks.ASP.NET.SimpleOAuth2/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Tasks.ASP.NET.SimpleOAuth2")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("Tasks.ASP.NET.SimpleOAuth2")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("3eab9992-044c-4242-a089-7c5df8dcac76")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Revision and Build Numbers 33 | // by using the '*' as shown below: 34 | [assembly: AssemblyVersion("1.0.0.0")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /PageSpeedOnline.SimpleTest/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | // General Information about an assembly is controlled through the following 5 | // set of attributes. Change these attribute values to modify the information 6 | // associated with an assembly. 7 | [assembly: AssemblyTitle("PageSpeedOnline.SimpleTest")] 8 | [assembly: AssemblyDescription("")] 9 | [assembly: AssemblyConfiguration("")] 10 | [assembly: AssemblyCompany("Google Inc")] 11 | [assembly: AssemblyProduct("PageSpeedOnline.SimpleTest")] 12 | [assembly: AssemblyCopyright("Copyright © Google Inc 2011")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | 16 | // Setting ComVisible to false makes the types in this assembly not visible 17 | // to COM components. If you need to access a type in this assembly from 18 | // COM, set the ComVisible attribute to true on that type. 19 | [assembly: ComVisible(false)] 20 | 21 | // The following GUID is for the ID of the typelib if this project is exposed to COM 22 | [assembly: Guid("1ff12eff-e6ed-4264-ae2d-40edb01d9093")] 23 | 24 | // Version information for an assembly consists of the following four values: 25 | // 26 | // Major Version 27 | // Minor Version 28 | // Build Number 29 | // Revision 30 | // 31 | // You can specify all the values or you can default the Build and Revision Numbers 32 | // by using the '*' as shown below: 33 | // [assembly: AssemblyVersion("1.0.*")] 34 | [assembly: AssemblyVersion("1.0.0.*")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /Books.ListMyLibrary/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /DfaReporting.Sample/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Discovery.ListAPIs/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Discovery.ListAPIs")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Google")] 12 | [assembly: AssemblyProduct("Discovery.ListAPIs")] 13 | [assembly: AssemblyCopyright("Copyright © Google 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("786ae493-79cb-4e1c-b33e-dbf79a6ef926")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Plus.ServiceAccount/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Tasks.ETagCollision/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /UrlShortener.ShortenURL/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | // General Information about an assembly is controlled through the following 5 | // set of attributes. Change these attribute values to modify the information 6 | // associated with an assembly. 7 | 8 | [assembly: AssemblyTitle("Urlshortener.v1.Cmd")] 9 | [assembly: AssemblyDescription("URL Shortener Sample")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Google Inc")] 12 | [assembly: AssemblyProduct("Urlshortener.v1.Cmd")] 13 | [assembly: AssemblyCopyright("© 2011 Google Inc")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | 21 | [assembly: ComVisible(false)] 22 | 23 | // The following GUID is for the ID of the typelib if this project is exposed to COM 24 | 25 | [assembly: Guid("b4e58c0f-6600-4d38-b92a-97149c9ec01a")] 26 | 27 | // Version information for an assembly consists of the following four values: 28 | // 29 | // Major Version 30 | // Minor Version 31 | // Build Number 32 | // Revision 33 | // 34 | // You can specify all the values or you can default the Build and Revision Numbers 35 | // by using the '*' as shown below: 36 | // [assembly: AssemblyVersion("1.0.*")] 37 | 38 | [assembly: AssemblyVersion("1.0.0.*")] 39 | [assembly: AssemblyFileVersion("1.0.0.0")] -------------------------------------------------------------------------------- /DfaReporting.Sample/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("DfaReporting.Sample")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Google")] 12 | [assembly: AssemblyProduct("DfaReporting.Sample")] 13 | [assembly: AssemblyCopyright("Copyright © Google Inc 2012")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("05d799ca-03b7-4414-98f5-d066850a0877")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.*")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Tasks.CreateTasks/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Tasks.CreateTasks")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Google Inc")] 12 | [assembly: AssemblyProduct("Tasks.CreateTasks")] 13 | [assembly: AssemblyCopyright("Copyright © Google Inc 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("c85adfc3-ca73-4eea-8d59-db3bf2769a44")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Tasks.WPF.ListTasks/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /UrlShortener.ListURLs/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /UrlShortener.ShortenURL/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /ResumableUpload.CS.Sample/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("ResumableUpload.CS.Sample")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("ResumableUpload.CS.Sample")] 13 | [assembly: AssemblyCopyright("Copyright © 2016")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("75100595-94a5-44ae-a558-f008fc849055")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /SiteVerification.VerifySite/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Tasks.ETagCollision/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Tasks.ETagCollision")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Google Inc")] 12 | [assembly: AssemblyProduct("Tasks.ETagCollision")] 13 | [assembly: AssemblyCopyright("Copyright © Google Inc 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("4d633636-c985-48c3-b749-bc5d06760ceb")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Books.ListMyLibrary/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Books.ListMyLibrary")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Google Inc")] 12 | [assembly: AssemblyProduct("Books.v1.ListMyLibrary")] 13 | [assembly: AssemblyCopyright("Copyright © Google Inc 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("43e33418-eef3-4859-aac2-ff1615229840")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Views/Account/ExternalLoginConfirmation.cshtml: -------------------------------------------------------------------------------- 1 | @* This file is added automatically by the MVC 5 application template. *@ 2 | 3 | @model Calendar.ASP.NET.MVC5.Models.ExternalLoginConfirmationViewModel 4 | @{ 5 | ViewBag.Title = "Register"; 6 | } 7 |

@ViewBag.Title.

8 |

Associate your @ViewBag.LoginProvider account.

9 | 10 | @using (Html.BeginForm("ExternalLoginConfirmation", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, 11 | new { @class = "form-horizontal", role = "form" })) 12 | { 13 | @Html.AntiForgeryToken() 14 | 15 |

Association Form

16 |
17 | @Html.ValidationSummary(true, "", new { @class = "text-danger" }) 18 |

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 |
24 | @Html.LabelFor(m => m.Email, new { @class = "col-md-2 control-label" }) 25 |
26 | @Html.TextBoxFor(m => m.Email, new { @class = "form-control" }) 27 | @Html.ValidationMessageFor(m => m.Email, "", new { @class = "text-danger" }) 28 |
29 |
30 |
31 |
32 | 33 |
34 |
35 | } 36 | 37 | @section Scripts { 38 | @Scripts.Render("~/bundles/jqueryval") 39 | } 40 | -------------------------------------------------------------------------------- /Tasks.WinForms.NoteMgr/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Tasks.WinForms.NoteMgr")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Google Inc")] 12 | [assembly: AssemblyProduct("Tasks.WinForms.NoteMgr")] 13 | [assembly: AssemblyCopyright("Copyright © Google Inc 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("093e2a22-deda-4890-98cb-4d8edb3051c7")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Discovery.FieldsParameter/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Discovery.FieldsParameter")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("Discovery.FieldsParameter")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("cfa5ff7c-65fc-4c2b-898c-330bdc7d8a0f")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Translate.TranslateText/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Translate.TranslateText")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Google Inc")] 12 | [assembly: AssemblyProduct("Translate.TranslateText")] 13 | [assembly: AssemblyCopyright("Copyright © Google Inc 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("d7fabf5e-65ea-4bb1-921b-f4e3ad621144")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.*")] 36 | [assembly: AssemblyFileVersion("1.0.0.10")] 37 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // This file is added automatically by the MVC 5 application template. 2 | 3 | using System.Reflection; 4 | using System.Runtime.CompilerServices; 5 | using System.Runtime.InteropServices; 6 | 7 | // General Information about an assembly is controlled through the following 8 | // set of attributes. Change these attribute values to modify the information 9 | // associated with an assembly. 10 | [assembly: AssemblyTitle("Calendar.ASP.NET.MVC5")] 11 | [assembly: AssemblyDescription("")] 12 | [assembly: AssemblyConfiguration("")] 13 | [assembly: AssemblyCompany("")] 14 | [assembly: AssemblyProduct("Calendar.ASP.NET.MVC5")] 15 | [assembly: AssemblyCopyright("Copyright © 2014")] 16 | [assembly: AssemblyTrademark("")] 17 | [assembly: AssemblyCulture("")] 18 | 19 | // Setting ComVisible to false makes the types in this assembly not visible 20 | // to COM components. If you need to access a type in this assembly from 21 | // COM, set the ComVisible attribute to true on that type. 22 | [assembly: ComVisible(false)] 23 | 24 | // The following GUID is for the ID of the typelib if this project is exposed to COM 25 | [assembly: Guid("241706be-fa22-4338-8e09-dd6daad6d658")] 26 | 27 | // Version information for an assembly consists of the following four values: 28 | // 29 | // Major Version 30 | // Minor Version 31 | // Build Number 32 | // Revision 33 | // 34 | // You can specify all the values or you can default the Revision and Build Numbers 35 | // by using the '*' as shown below: 36 | [assembly: AssemblyVersion("1.0.0.0")] 37 | [assembly: AssemblyFileVersion("1.0.0.0")] 38 | -------------------------------------------------------------------------------- /SiteVerification.VerifySite/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("SiteVerification..VerifySite")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Google")] 12 | [assembly: AssemblyProduct("SiteVerification.VerifySite")] 13 | [assembly: AssemblyCopyright("Copyright © Google Inc 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("05d799ca-03b7-4414-98f5-d066850a0877")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.*")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Calendar.VB.ConsoleApp/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /ResumableUpload.CS.Sample/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("ResumableUpload.CS.Sample")] 9 | [assembly: AssemblyDescription("Demonstrates ResumeableUpload Class")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("ResumableUpload.CS.Sample")] 13 | [assembly: AssemblyCopyright("Copyright © 2016")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("75100595-94a5-44ae-a558-f008fc849055")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Views/Account/_ExternalLoginsListPartial.cshtml: -------------------------------------------------------------------------------- 1 | @* This file is added automatically by the MVC 5 application template. *@ 2 | 3 | @model Calendar.ASP.NET.MVC5.Models.ExternalLoginListViewModel 4 | @using Microsoft.Owin.Security 5 | 6 | @* We only support one login type. *@ 7 |

Use your Google account to log in.

8 |
9 | @{ 10 | var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes(); 11 | if (loginProviders.Count() == 0) 12 | { 13 |
14 |

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 |
20 | } 21 | else 22 | { 23 | using (Html.BeginForm("ExternalLogin", "Account", new { ReturnUrl = Model.ReturnUrl })) 24 | { 25 | @Html.AntiForgeryToken() 26 |
27 |

28 | @foreach (AuthenticationDescription p in loginProviders) 29 | { 30 | 33 | } 34 |

35 |
36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.Shared/Blogger.Sample.Shared.projitems: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | true 6 | 56d74b15-1902-49e0-a8a4-124addce04db 7 | 8 | 9 | Blogger.Sample 10 | 11 | 12 | 13 | Designer 14 | 15 | 16 | App.xaml 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | PreserveNewest 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /ResumableUpload.VB.Sample/README.md: -------------------------------------------------------------------------------- 1 | # Google .NET Client API - ResumableUpload.VB.Sample 2 | 3 | ## Browse Online 4 | [Browse Source](https://github.com/google/google-api-dotnet-client-samples) or main file [ResumeableUploadSample.vb](https://github.com/google/google-api-dotnet-client-samples/blob/master/ResumableUpload.VB.Sample/ResumeableUploadSample.vb) 5 | 6 | ## API access Instructions 7 | 8 | Visit the [Google APIs console](https://code.google.com/apis/console/) 9 | - Click on the drop down to the far right of the "Google APIs" logo, and click "Create a project..." 10 | - Enter a project name 11 | - Click **Create** 12 | - Click **YouTube Data API** 13 | - Click **Enable** 14 | - Click **Go to Credentials** 15 | - In the "Where will you be calling the API from" ComboBox, choose "Other UI (e.g. Windows, CLI tool)" 16 | - Choose "User Data" 17 | - Click **What Credentials do I need?** 18 | - Enter a product name for your Client ID 19 | - Click **Create client ID** 20 | - Enter "Product name shown to users" 21 | - Click **Continue** 22 | - Click **I'll do this later** 23 | - Click the name of your newly created OAuth 2.0 client ID 24 | - Copy the **Client ID** and **Client secret** to use when editing the sample source program 25 | 26 | ## Setup Project in Visual Studio 27 | - Open the GoogleApisSamples.sln with Visual Studio. 28 | - Click Tools / NuGet Package Manager / Manage NuGet Packages for Solution. 29 | - Click on Updates / nuget.org and install all update packages. 30 | - Insert your **Client ID** and **Client secret** into the source code. 31 | - Change **VIDEOFULLPATHFILENAME** to specify the video file to be uploaded. 32 | - Click on Build then Rebuild Solution. 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Translate.WP.TranslateText/Package.appxmanifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Translate.WP.TranslateText 7 | jmcgrew 8 | Assets\StoreLogo.png 9 | 10 | 11 | 6.3.1 12 | 6.3.1 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Discovery.VB.ListAPIs/Program.vb: -------------------------------------------------------------------------------- 1 | 'Copyright 2011 Google Inc 2 | ' 3 | 'Licensed under the Apache License, Version 2.0(the "License"); 4 | 'you may not use this file except in compliance with the License. 5 | 'You may obtain a copy of the License at 6 | ' 7 | ' http://www.apache.org/licenses/LICENSE-2.0 8 | ' 9 | 'Unless required by applicable law or agreed to in writing, software 10 | 'distributed under the License is distributed on an "AS IS" BASIS, 11 | 'WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | 'See the License for the specific language governing permissions and 13 | 'limitations under the License. 14 | ' 15 | 16 | Imports Google.Apis.Discovery.v1 17 | Imports Google.Apis.Discovery.v1.Data 18 | 19 | ''' 20 | ''' This example uses the discovery API to list all APIs in the discovery repository. 21 | ''' http://code.google.com/apis/discovery/v1/using.html 22 | ''' 23 | Class Program 24 | Shared Sub Main() 25 | Console.WriteLine("Discovery API Sample") 26 | Console.WriteLine("====================") 27 | 28 | ' Create the service. 29 | Dim service = New DiscoveryService() 30 | RunSample(service) 31 | 32 | Console.WriteLine("Press any key to continue...") 33 | Console.ReadKey() 34 | End Sub 35 | 36 | Private Shared Sub RunSample(ByVal service As DiscoveryService) 37 | ' Run the request. 38 | Console.WriteLine("Executing a list request...") 39 | Dim result = service.Apis.List().Execute() 40 | 41 | ' Display the results. 42 | If result.Items IsNot Nothing Then 43 | For Each api As DirectoryList.ItemsData In result.Items 44 | Console.WriteLine(api.Id & " - " & api.Title) 45 | Next 46 | End If 47 | End Sub 48 | End Class -------------------------------------------------------------------------------- /UrlShortener.ShortenURL/README.html: -------------------------------------------------------------------------------- 1 | 2 | Google .NET Client API – UrlShortener.ShortenURL 3 | 4 |

Instructions for the Google .NET Client API – UrlShortener.ShortenURL

5 | 6 |

Browse Online

7 | 8 | 12 | 13 |

1. Checkout Instructions

14 | 15 |

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 |

2. API access Instructions

22 |

Important: after checking out the project, compiling and running it, you need to do the following: 23 |

    24 |
  • Visit the Google APIs console
  • 25 |
  • If this is your first time, click "Create project..."
  • 26 |
  • Otherwise, click on the drop down under the "Google APIs" logo at 27 | the top left, and click "Create..." under "Other projects"
  • 28 |
  • Activate the UrlShortener API for your project
  • 29 |
30 |

31 | 32 |

Setup Project in Visual Studio

33 |
    34 |
  • Open the GoogleApisSamples.sln with Visual Studio
  • 35 |
  • Click on Build > Rebuild Solution
  • 36 |
  • Execute the .exe in UrlShortener.ShortenURL\bin\Debug
  • 37 |
38 | 39 | -------------------------------------------------------------------------------- /Calendar.ASP.NET.MVC5/Views/Web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Translate.TranslateText/README.html: -------------------------------------------------------------------------------- 1 | 2 | Google .NET Client API – Translate.TranslateText 3 | 4 |

Instructions for the Google .NET Client API – Translate.TranslateText

5 | 6 |

Browse Online

7 | 8 | 12 | 13 |

1. Checkout Instructions

14 | 15 |

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 |

2. API access Instructions

22 |

Important: after checking out the project, and before compiling 23 | and running it, you need to: 24 |

28 |

29 | 30 |

Setup Project in Visual Studio

31 |
    32 |
  • Open the GoogleApisSamples.sln with Visual Studio
  • 33 |
  • Click on Build > Rebuild Solution
  • 34 |
  • Execute the .exe in Translate.TranslateText\bin\Debug
  • 35 |
  • 36 | When prompted insert your API Key which is generated on the Google APIs Console API Access pane. 37 |
  • 38 |
39 | 40 | 41 | -------------------------------------------------------------------------------- /Tasks.CreateTasks/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /Tasks.SimpleOAuth2/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.Shared/Repository/IBloggerRepository.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2014 Google Inc 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | using System.Collections.Generic; 18 | using System.Threading.Tasks; 19 | 20 | namespace Blogger.Sample.Repository 21 | { 22 | /// Blog data contact. 23 | public class Blog 24 | { 25 | /// Gets or sets the blog id. 26 | public string Id { get; set; } 27 | /// Gets or sets the blog name. 28 | public string Name { get; set; } 29 | } 30 | 31 | /// Post data contact. 32 | public class Post 33 | { 34 | /// Gets or sets the post title. 35 | public string Title { get; set; } 36 | /// Gets or sets the post content. 37 | public string Content { get; set; } 38 | } 39 | 40 | /// Blogger repository for retrieving blogs and posts. 41 | public interface IBloggerRepository 42 | { 43 | /// Gets all post for the specified blog. 44 | Task> GetPostsAsync(string blogId); 45 | 46 | /// Get all user's blogs. 47 | Task> GetBlogsAsync(); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Tasks.WinForms.NoteMgr/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /Blogger.Sample/README.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Google .NET Client API – Blogger.Sample 4 | 5 | 6 | 7 | 8 |

Instructions for the Google .NET Client API – Blogger.Sample for Windows 8.1 and Windows Phone 8.1

9 | 10 |

Browse Source

11 | 12 | 17 | 18 |

1. Checkout Instructions

19 | 20 |

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 |

2. API Access Instructions

29 | 30 |

Important: after checking out the project, you need to do the following: 31 |

32 | 33 | 42 | 43 |

Set Up Project in Visual Studio

44 | 45 |
    46 |
  1. Open the GoogleApisSamples.sln with Visual Studio
  2. 47 |
  3. Build the solution
  4. 48 |
  5. Launch the Windows Phone or Windows app in the emulator
  6. 49 |
50 | 51 | 52 | -------------------------------------------------------------------------------- /PageSpeedOnline.SimpleTest/README.html: -------------------------------------------------------------------------------- 1 | 2 | Google .NET Client API – PageSpeedOnline.SimpleTest 3 | 4 |

Instructions for the Google .NET Client API – PageSpeedOnline.SimpleTest

5 | 6 |

Browse Online

7 | 8 | 12 | 13 |

1. Checkout Instructions

14 | 15 |

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 |

2. API access Instructions

22 |

Important: after checking out the project, and before compiling 23 | and running it, you need to: 24 |

28 |

29 | 30 |

Setup Project in Visual Studio

31 |
    32 |
  • Open the GoogleApisSamples.sln with Visual Studio
  • 33 |
  • Click on Build > Rebuild Solution
  • 34 |
  • Execute the .exe in PageSpeedOnline.SimpleTest\bin\Debug
  • 35 |
  • 36 | When prompted insert your API Key which is generated on the Google APIs Console API Access pane. 37 |
  • 38 |
39 | 40 | 41 | -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.Shared/README.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Google .NET Client API – Blogger.Sample 4 | 5 | 6 | 7 | 8 |

Instructions for the Google .NET Client API – Blogger.Sample for Windows 8.1 and Windows Phone 8.1

9 | 10 |

Browse Source

11 | 12 | 17 | 18 |

1. Checkout Instructions

19 | 20 |

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 |

2. API Access Instructions

29 | 30 |

Important: after checking out the project, you need to do the following: 31 |

32 | 33 | 42 | 43 |

Set Up Project in Visual Studio

44 | 45 |
    46 |
  1. Open the GoogleApisSamples.sln with Visual Studio
  2. 47 |
  3. Build the solution
  4. 48 |
  5. Launch the Windows Phone or Windows app in the emulator
  6. 49 |
50 | 51 | 52 | -------------------------------------------------------------------------------- /Plus.ServiceAccount/README.html: -------------------------------------------------------------------------------- 1 | 2 | Google .NET Client API – Plus.ServiceAccount 3 | 4 |

Instructions for the Google .NET Client API – Plus.ServiceAccount

5 | 6 |

Browse Online

7 | 8 | 12 | 13 |

1. Checkout Instructions

14 | 15 |

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 |

2. API access Instructions

20 |

Important: after checking out the project, and before compiling 21 | and running it, you need to: 22 |

27 |

28 | 29 |

Setup Project in Visual Studio

30 |
    31 |
  • Open the GoogleApisSamples.sln with Visual Studio
  • 32 |
  • Click on Build > Rebuild Solution
  • 33 |
  • Execute the .exe in Plus.ServiceAccount\bin\Debug
  • 34 |
35 | 36 | 37 | -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.WindowsPhone/Package.appxmanifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | Blogger.Sample.WindowsPhone 12 | peleyal 13 | Assets\StoreLogo.png 14 | 15 | 16 | 17 | 6.3.1 18 | 6.3.1 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 29 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /Translate.WP.TranslateText/README.html: -------------------------------------------------------------------------------- 1 | 2 | Google .NET Client API – Translate.WP.TranslateText 3 | 4 |

Instructions for the Google .NET Client API – Translate.WP.TranslateText

5 | 6 |

Browse Online

7 | 8 | 12 | 13 |

1. Checkout Instructions

14 | 15 |

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 |

2. API access Instructions

22 |

Important: after checking out the project, and before compiling 23 | and running it, you need to: 24 |

28 |

29 | 30 |

Setup Project in Visual Studio

31 |
    32 |
  • Open the GoogleApisSamples.sln with Visual Studio
  • 33 |
  • Click on Build > Rebuild Solution
  • 34 |
  • Find your API Key which is generated on the Google APIs 35 | Console API Access pane.
  • 36 |
  • Edit MainPage.xaml.cs and replace the value of the API_KEY constant with your API Key
  • 37 |
  • Launch the app in the Windows Phone emulator
  • 38 |
39 | 40 | 41 | -------------------------------------------------------------------------------- /Blogger.Sample/Blogger.Sample.WindowsPhone/MainPage.xaml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | Google - BloggerApp 21 | 22 | 23 |