From 26e9b0e19b1412150f6478b0d0aeefb9e12e19e0 Mon Sep 17 00:00:00 2001 From: Mirco Bellagamba Date: Tue, 16 Oct 2018 13:24:01 +0200 Subject: [PATCH] Add Markdown README --- AdSense.Sample/README.md | 5 ++++ AdSenseHost.Sample/README.md | 5 ++++ Blogger.Sample/README.md | 28 ++++++++++++++++++++ Books.ListMyLibrary/README.md | 33 ++++++++++++++++++++++++ Calendar.VB.ConsoleApp/README.md | 33 ++++++++++++++++++++++++ DfaReporting.Sample/README.md | 33 ++++++++++++++++++++++++ Discovery.FieldsParameter/README.md | 20 +++++++++++++++ Discovery.ListAPIs/README.md | 20 +++++++++++++++ Drive.Sample/README.md | 33 ++++++++++++++++++++++++ PageSpeedOnline.SimpleTest/README.md | 28 ++++++++++++++++++++ Plus.ServiceAccount/README.md | 28 ++++++++++++++++++++ README.md | 37 ++++++++++++++++++++++++++- SiteVerification.VerifySite/README.md | 33 ++++++++++++++++++++++++ Tasks.ASP.NET.SimpleOAuth2/README.md | 35 +++++++++++++++++++++++++ Tasks.CreateTasks/README.md | 33 ++++++++++++++++++++++++ Tasks.ETagCollision/README.md | 33 ++++++++++++++++++++++++ Tasks.SimpleOAuth2/README.md | 33 ++++++++++++++++++++++++ Tasks.WPF.ListTasks/README.md | 33 ++++++++++++++++++++++++ Tasks.WinForms.NoteMgr/README.md | 33 ++++++++++++++++++++++++ Translate.TranslateText/README.md | 28 ++++++++++++++++++++ Translate.WP.TranslateText/README.md | 29 +++++++++++++++++++++ UrlShortener.ASP.NET/README.md | 33 ++++++++++++++++++++++++ UrlShortener.ListURLs/README.md | 33 ++++++++++++++++++++++++ UrlShortener.ShortenURL/README.md | 29 +++++++++++++++++++++ 24 files changed, 687 insertions(+), 1 deletion(-) create mode 100644 AdSense.Sample/README.md create mode 100644 AdSenseHost.Sample/README.md create mode 100644 Blogger.Sample/README.md create mode 100644 Books.ListMyLibrary/README.md create mode 100644 Calendar.VB.ConsoleApp/README.md create mode 100644 DfaReporting.Sample/README.md create mode 100644 Discovery.FieldsParameter/README.md create mode 100644 Discovery.ListAPIs/README.md create mode 100644 Drive.Sample/README.md create mode 100644 PageSpeedOnline.SimpleTest/README.md create mode 100644 Plus.ServiceAccount/README.md create mode 100644 SiteVerification.VerifySite/README.md create mode 100644 Tasks.ASP.NET.SimpleOAuth2/README.md create mode 100644 Tasks.CreateTasks/README.md create mode 100644 Tasks.ETagCollision/README.md create mode 100644 Tasks.SimpleOAuth2/README.md create mode 100644 Tasks.WPF.ListTasks/README.md create mode 100644 Tasks.WinForms.NoteMgr/README.md create mode 100644 Translate.TranslateText/README.md create mode 100644 Translate.WP.TranslateText/README.md create mode 100644 UrlShortener.ASP.NET/README.md create mode 100644 UrlShortener.ListURLs/README.md create mode 100644 UrlShortener.ShortenURL/README.md diff --git a/AdSense.Sample/README.md b/AdSense.Sample/README.md new file mode 100644 index 00000000..fde23058 --- /dev/null +++ b/AdSense.Sample/README.md @@ -0,0 +1,5 @@ +# AdSense Management API Sample + +The .NET command-line samples for the AdSense Management API have been moved to GitHub: + +[https://github.com/googleads/googleads-adsense-examples](https://github.com/googleads/googleads-adsense-examples) diff --git a/AdSenseHost.Sample/README.md b/AdSenseHost.Sample/README.md new file mode 100644 index 00000000..8393fb8c --- /dev/null +++ b/AdSenseHost.Sample/README.md @@ -0,0 +1,5 @@ +# AdSense Host API Sample + +The .NET command-line samples for the AdSense Host API have been moved to GitHub: + +[https://github.com/googleads/googleads-adsensehost-examples](https://github.com/googleads/googleads-adsensehost-examples) diff --git a/Blogger.Sample/README.md b/Blogger.Sample/README.md new file mode 100644 index 00000000..76e2c1d4 --- /dev/null +++ b/Blogger.Sample/README.md @@ -0,0 +1,28 @@ +## Instructions for the Google .NET Client API – Blogger.Sample for Windows 8.1 and Windows Phone 8.1 + +### Browse Source + +* [Blogger.Sample](https://code.google.com/p/google-api-dotnet-client/source/browse?repo=samples#hg%2FBlogger.Sample) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd _[someDirectory]_ +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API Access Instructions + +**Important:** after checking out the project, you need to do the following: + +* [Create a project](https://developers.google.com/console/help/?csw=1#creatingdeletingprojects) in the Google APIs console +* [Activate](https://developers.google.com/console/help/?csw=1#activatingapis) the Blogger API for your project +* Update the client_id and client_secret in [client_secrets.json](https://code.google.com/p/google-api-dotnet-client/source/browse/Blogger.Sample/Blogger.Sample.Shared/Assets/client_secrets.json?repo=samples) + +### Set Up Project in Visual Studio + +1. Open the GoogleApisSamples.sln with Visual Studio +2. Build the solution +3. Launch the Windows Phone or Windows app in the emulator diff --git a/Books.ListMyLibrary/README.md b/Books.ListMyLibrary/README.md new file mode 100644 index 00000000..ff143ea5 --- /dev/null +++ b/Books.ListMyLibrary/README.md @@ -0,0 +1,33 @@ +## Instructions for the Google .NET Client API – Books.ListMyLibrary + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FBooks.ListMyLibrary), or main file [Program.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/Books.ListMyLibrary/Program.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, compiling and running it, you need to do the following: + +* Visit the [Google APIs console](https://code.google.com/apis/console/) +* If this is your first time, click "Create project..." +* Otherwise, click on the drop down under the "Google APIs" logo at the top left, and click "Create..." under "Other projects" +* Click on "API Access", and then on "Create an OAuth 2.0 Client ID...". +* Enter a product name and click "Next". +* Select "Installed application" and click "Create client ID". +* In the newly created "Client ID for installed applications", click "Download JSON" on the right side. Replace the project's client_secrets.json with the file you just downloaded. +* [Activate](https://code.google.com/apis/console/?api==books) the Books API for your project + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Execute the .exe in _Books.ListMyLibrary\bin\Debug_ diff --git a/Calendar.VB.ConsoleApp/README.md b/Calendar.VB.ConsoleApp/README.md new file mode 100644 index 00000000..83c88cda --- /dev/null +++ b/Calendar.VB.ConsoleApp/README.md @@ -0,0 +1,33 @@ +## Instructions for the Google .NET Client API – Calendar.VB.ConsoleApp + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FCalendar.VB.ConsoleApp), or main file [Program.vb](http://code.google.com/p/google-api-dotnet-client/source/browse/Calendar.VB.ConsoleApp/Program.vb?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, compiling and running it, you need to do the following: + +* Visit the [Google APIs console](https://code.google.com/apis/console/) +* If this is your first time, click "Create project..." +* Otherwise, click on the drop down under the "Google APIs" logo at the top left, and click "Create..." under "Other projects" +* Click on "API Access", and then on "Create an OAuth 2.0 Client ID...". +* Enter a product name and click "Next". +* Select "Installed application" and click "Create client ID". +* In the newly created "Client ID for installed applications", copy the client ID and client secrets into the AdSenseSample.cs file. +* [Activate](https://code.google.com/apis/console/?api=calendar) the Calendar API for your project. + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Execute the .exe in _Calendar.VB.ConsoleApp\bin\Debug_ diff --git a/DfaReporting.Sample/README.md b/DfaReporting.Sample/README.md new file mode 100644 index 00000000..eb6be023 --- /dev/null +++ b/DfaReporting.Sample/README.md @@ -0,0 +1,33 @@ +## Instructions for the Google .NET Client API – DfaReporting.Sample + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FDfaReporting.Sample) , or main file [Program.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/DfaReporting.Sample/Program.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, compiling and running it, you need to do the following: + +* Visit the [Google APIs console](https://code.google.com/apis/console/) +* If this is your first time, click "Create project..." +* Otherwise, click on the drop down under the "Google APIs" logo at the top left, and click "Create..." under "Other projects" +* Click on "API Access", and then on "Create an OAuth 2.0 Client ID...". +* Enter a product name and click "Next". +* Select "Installed application" and click "Create client ID". +* In the newly created "Client ID for installed applications", copy the client ID and client secrets into the AdSenseSample.cs file. +* [Activate](https://code.google.com/apis/console/?api=dfareporting) the DFA Reporting API for your project. + +### 3\. Set up Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Execute the .exe in _DfaReporting.Sample\bin\Debug_ diff --git a/Discovery.FieldsParameter/README.md b/Discovery.FieldsParameter/README.md new file mode 100644 index 00000000..fae14788 --- /dev/null +++ b/Discovery.FieldsParameter/README.md @@ -0,0 +1,20 @@ +## Instructions for the Google .NET Client API – Discovery.FieldsParameter + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FDiscovery.FieldsParameter), or main file [Program.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/Discovery.FieldsParameter/Program.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Execute the .exe in _Discovery.FieldsParameter\bin\Debug_ diff --git a/Discovery.ListAPIs/README.md b/Discovery.ListAPIs/README.md new file mode 100644 index 00000000..0549819b --- /dev/null +++ b/Discovery.ListAPIs/README.md @@ -0,0 +1,20 @@ +## Instructions for the Google .NET Client API – Discovery.ListAPIs + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FDiscovery.ListAPIs), or main file [Program.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/Discovery.ListAPIs/Program.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Execute the .exe in _Discovery.ListAPIs\bin\Debug_ diff --git a/Drive.Sample/README.md b/Drive.Sample/README.md new file mode 100644 index 00000000..7709f8ff --- /dev/null +++ b/Drive.Sample/README.md @@ -0,0 +1,33 @@ +## Instructions for the Google .NET Client API – Drive.Sample + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FDrive.Sample), or main file [Program.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/Drive.Sample/Program.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, compiling and running it, you need to do the following: + +* Visit the [Google APIs console](https://code.google.com/apis/console/) +* If this is your first time, click "Create project..." +* Otherwise, click on the drop down under the "Google APIs" logo at the top left, and click "Create..." under "Other projects" +* Click on "API Access", and then on "Create an OAuth 2.0 Client ID...". +* Enter a product name and click "Next". +* Select "Installed application" and click "Create client ID". +* In the newly created "Client ID for installed applications", copy the client ID and client secrets into the AdSenseSample.cs file. +* [Activate](https://code.google.com/apis/console/?api=drive) the Drive API for your project. + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Execute the .exe in _Drive.Sample\bin\Debug_ diff --git a/PageSpeedOnline.SimpleTest/README.md b/PageSpeedOnline.SimpleTest/README.md new file mode 100644 index 00000000..c423c180 --- /dev/null +++ b/PageSpeedOnline.SimpleTest/README.md @@ -0,0 +1,28 @@ +## Instructions for the Google .NET Client API – PageSpeedOnline.SimpleTest + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FPageSpeedOnline.SimpleTest), or main file [Program.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/PageSpeedOnline.SimpleTest/Program.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, and before compiling and running it, you need to: + +* [Create a project in Google APIs console](http://code.google.com/apis/console-help/#creatingdeletingprojects) +* [Activate](http://code.google.com/apis/console-help/#activatingapis) the PageSpeedOnline API for your project + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Execute the .exe in _PageSpeedOnline.SimpleTest\bin\Debug_ +* When prompted insert your API Key which is generated on the [Google APIs Console](https://code.google.com/apis/console/) API Access pane. diff --git a/Plus.ServiceAccount/README.md b/Plus.ServiceAccount/README.md new file mode 100644 index 00000000..10086531 --- /dev/null +++ b/Plus.ServiceAccount/README.md @@ -0,0 +1,28 @@ +## Instructions for the Google .NET Client API – Plus.ServiceAccount + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FPlus.ServiceAccount), or main file [Program.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/Plus.ServiceAccount/Program.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, and before compiling and running it, you need to: + +* [Create a project in Google APIs console](http://code.google.com/apis/console-help/#creatingdeletingprojects) +* [Activate](https://code.google.com/apis/console/?api=plus) the Google+ API +* Replace [key.p12](http://code.google.com/p/google-api-dotnet-client/source/browse/Plus.ServiceAccount/key.p12?repo=samples) with the private key that is generated on the [Google APIs Console](https://code.google.com/apis/console/) API Access pane for your Service Account. + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Execute the .exe in _Plus.ServiceAccount\bin\Debug_ diff --git a/README.md b/README.md index b3f333bf..2ac7f3d2 100644 --- a/README.md +++ b/README.md @@ -1 +1,36 @@ -## Samples of using the [Google APIs Client Library for .NET](https://github.com/google/google-api-dotnet-client) +# Samples of using the [Google APIs Client Library for .NET](https://github.com/google/google-api-dotnet-client) + +## Instructions for the Google .NET Client API – Samples solution + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio or [MonoDevelop](http://monodevelop.com/), and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, and before compiling and running it, you need to: + +* [Create a project in Google APIs console](http://code.google.com/apis/console-help/#creatingdeletingprojects) +* [Activate](http://code.google.com/apis/console-help/#activatingapis) the APIs you want to use +* Enter your client credentials by executing enterCredentials.cmd (or running `chmod +x configure && ./configure` on Unix) You can find your credentials on the [Google APIs Console](https://code.google.com/apis/console/) API Access pane. + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Pick a sample, and execute the .exe in _<SampleDir>\bin\Debug_ + +### Setup Project in MonoDevelop + +* Open the GoogleApisSamples_mono.sln with MonoDevelop +* Click on Build > Rebuild All +* Pick a sample, and execute the .exe in _<SampleDir>\bin\Debug_ using mono diff --git a/SiteVerification.VerifySite/README.md b/SiteVerification.VerifySite/README.md new file mode 100644 index 00000000..c1529bf0 --- /dev/null +++ b/SiteVerification.VerifySite/README.md @@ -0,0 +1,33 @@ +## Instructions for the Google .NET Client API – SiteVerification.VerifySite + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FSiteVerification.VerifySite), or main file [Program.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/SiteVerification.VerifySite/Program.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, compiling and running it, you need to do the following: + +* Visit the [Google APIs console](https://code.google.com/apis/console/) +* If this is your first time, click "Create project..." +* Otherwise, click on the drop down under the "Google APIs" logo at the top left, and click "Create..." under "Other projects" +* Click on "API Access", and then on "Create an OAuth 2.0 Client ID...". +* Enter a product name and click "Next". +* Select "Installed application" and click "Create client ID". +* In the newly created "Client ID for installed applications", click "Download JSON" on the right side. Replace the project's client_secrets.json with the file you just downloaded. +* [Activate](https://code.google.com/apis/console/?api==siteverification) the SiteVerification API for your project + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Execute the .exe in _SiteVerification.VerifySite\bin\Debug_ diff --git a/Tasks.ASP.NET.SimpleOAuth2/README.md b/Tasks.ASP.NET.SimpleOAuth2/README.md new file mode 100644 index 00000000..4b1e1a13 --- /dev/null +++ b/Tasks.ASP.NET.SimpleOAuth2/README.md @@ -0,0 +1,35 @@ +# Google .NET Client API – Tasks.ASP.NET.SimpleOAuth2 + +## Instructions for the Google .NET Client API – Tasks.ASP.NET.SimpleOAuth2 + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FTasks.ASP.NET.SimpleOAuth2), or main file [Default.aspx.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/Tasks.ASP.NET.SimpleOAuth2/Default.aspx.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, compiling and running it, you need to do the following: + +* Visit the [Google APIs console](https://code.google.com/apis/console/) +* If this is your first time, click "Create project..." +* Otherwise, click on the drop down under the "Google APIs" logo at the top left, and click "Create..." under "Other projects" +* Click on "API Access", and then on "Create an OAuth 2.0 Client ID...". +* Enter a product name and click "Next". +* Select "Installed application" and click "Create client ID". +* In the newly created "Client ID for installed applications", click "Download JSON" on the right side. Replace the project's client_secrets.json with the file you just downloaded. +* [Activate](https://code.google.com/apis/console/?api=tasks) the Tasks API for your project + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Run the webpage using the builtin Visual Studio ASP.NET server (press F5) diff --git a/Tasks.CreateTasks/README.md b/Tasks.CreateTasks/README.md new file mode 100644 index 00000000..3b2d3f28 --- /dev/null +++ b/Tasks.CreateTasks/README.md @@ -0,0 +1,33 @@ +## Instructions for the Google .NET Client API – Tasks.CreateTasks + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FTasks.CreateTasks), or main file [Program.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/Tasks.CreateTasks/Program.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, compiling and running it, you need to do the following: + +* Visit the [Google APIs console](https://code.google.com/apis/console/) +* If this is your first time, click "Create project..." +* Otherwise, click on the drop down under the "Google APIs" logo at the top left, and click "Create..." under "Other projects" +* Click on "API Access", and then on "Create an OAuth 2.0 Client ID...". +* Enter a product name and click "Next". +* Select "Installed application" and click "Create client ID". +* In the newly created "Client ID for installed applications", click "Download JSON" on the right side. Replace the project's client_secrets.json with the file you just downloaded. +* [Activate](https://code.google.com/apis/console/?api=tasks) the Tasks API for your project + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Execute the .exe in _Tasks.CreateTasks\bin\Debug_ diff --git a/Tasks.ETagCollision/README.md b/Tasks.ETagCollision/README.md new file mode 100644 index 00000000..f43a930a --- /dev/null +++ b/Tasks.ETagCollision/README.md @@ -0,0 +1,33 @@ +## Instructions for the Google .NET Client API – Tasks.ETagCollision + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FTasks.ETagCollision), or main file [Program.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/Tasks.ETagCollision/Program.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, compiling and running it, you need to do the following: + +* Visit the [Google APIs console](https://code.google.com/apis/console/) +* If this is your first time, click "Create project..." +* Otherwise, click on the drop down under the "Google APIs" logo at the top left, and click "Create..." under "Other projects" +* Click on "API Access", and then on "Create an OAuth 2.0 Client ID...". +* Enter a product name and click "Next". +* Select "Installed application" and click "Create client ID". +* In the newly created "Client ID for installed applications", click "Download JSON" on the right side. Replace the project's client_secrets.json with the file you just downloaded. +* [Activate](https://code.google.com/apis/console/?api=tasks) the Tasks API for your project + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Execute the .exe in _Tasks.ETagCollision\bin\Debug_ diff --git a/Tasks.SimpleOAuth2/README.md b/Tasks.SimpleOAuth2/README.md new file mode 100644 index 00000000..6aa4905e --- /dev/null +++ b/Tasks.SimpleOAuth2/README.md @@ -0,0 +1,33 @@ +## Instructions for the Google .NET Client API – Tasks.SimpleOAuth2 + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FTasks.SimpleOAuth2), or main file [Program.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/Tasks.SimpleOAuth2/Program.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, compiling and running it, you need to do the following: + +* Visit the [Google APIs console](https://code.google.com/apis/console/) +* If this is your first time, click "Create project..." +* Otherwise, click on the drop down under the "Google APIs" logo at the top left, and click "Create..." under "Other projects" +* Click on "API Access", and then on "Create an OAuth 2.0 Client ID...". +* Enter a product name and click "Next". +* Select "Installed application" and click "Create client ID". +* In the newly created "Client ID for installed applications", click "Download JSON" on the right side. Replace the project's client_secrets.json with the file you just downloaded. +* [Activate](https://code.google.com/apis/console/?api=tasks) the Tasks API for your project + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Execute the .exe in _Tasks.SimpleOAuth2\bin\Debug_ diff --git a/Tasks.WPF.ListTasks/README.md b/Tasks.WPF.ListTasks/README.md new file mode 100644 index 00000000..4ac6864a --- /dev/null +++ b/Tasks.WPF.ListTasks/README.md @@ -0,0 +1,33 @@ +## Instructions for the Google .NET Client API – Tasks.WPF.ListTasks + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FTasks.WPF.ListTasks), or main file [MainWindow.xaml.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/Tasks.WPF.ListTasks/MainWindow.xaml.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, compiling and running it, you need to do the following: + +* Visit the [Google APIs console](https://code.google.com/apis/console/) +* If this is your first time, click "Create project..." +* Otherwise, click on the drop down under the "Google APIs" logo at the top left, and click "Create..." under "Other projects" +* Click on "API Access", and then on "Create an OAuth 2.0 Client ID...". +* Enter a product name and click "Next". +* Select "Installed application" and click "Create client ID". +* In the newly created "Client ID for installed applications", click "Download JSON" on the right side. Replace the project's client_secrets.json with the file you just downloaded. +* [Activate](https://code.google.com/apis/console/?api=tasks) the Tasks API for your project + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Execute the .exe in _Tasks.WPF.ListTasks\bin\Debug_ diff --git a/Tasks.WinForms.NoteMgr/README.md b/Tasks.WinForms.NoteMgr/README.md new file mode 100644 index 00000000..1450c124 --- /dev/null +++ b/Tasks.WinForms.NoteMgr/README.md @@ -0,0 +1,33 @@ +## Instructions for the Google .NET Client API – Tasks.WinForms.NoteMgr + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FTasks.WinForms.NoteMgr), or main file [NoteForm.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/Tasks.WinForms.NoteMgr/NoteForm.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, compiling and running it, you need to do the following: + +* Visit the [Google APIs console](https://code.google.com/apis/console/) +* If this is your first time, click "Create project..." +* Otherwise, click on the drop down under the "Google APIs" logo at the top left, and click "Create..." under "Other projects" +* Click on "API Access", and then on "Create an OAuth 2.0 Client ID...". +* Enter a product name and click "Next". +* Select "Installed application" and click "Create client ID". +* In the newly created "Client ID for installed applications", click "Download JSON" on the right side. Replace the project's client_secrets.json with the file you just downloaded. +* [Activate](https://code.google.com/apis/console/?api=tasks) the Tasks API for your project + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Execute the .exe in _Tasks.WinForms.NoteMgr\bin\Debug_ diff --git a/Translate.TranslateText/README.md b/Translate.TranslateText/README.md new file mode 100644 index 00000000..2df98da7 --- /dev/null +++ b/Translate.TranslateText/README.md @@ -0,0 +1,28 @@ +## Instructions for the Google .NET Client API – Translate.TranslateText + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FTranslate.TranslateText), or main file [Program.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/Translate.TranslateText/Program.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, and before compiling and running it, you need to: + +* [Create a project in Google APIs console](http://code.google.com/apis/console-help/#creatingdeletingprojects) +* [Activate](http://code.google.com/apis/console-help/#activatingapis) the Translate API for your project + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Execute the .exe in _Translate.TranslateText\bin\Debug_ +* When prompted insert your API Key which is generated on the [Google APIs Console](https://code.google.com/apis/console/) API Access pane. diff --git a/Translate.WP.TranslateText/README.md b/Translate.WP.TranslateText/README.md new file mode 100644 index 00000000..dd85e9cf --- /dev/null +++ b/Translate.WP.TranslateText/README.md @@ -0,0 +1,29 @@ +## Instructions for the Google .NET Client API – Translate.WP.TranslateText + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FTranslate.WP.TranslateText), or main file [MainPage.xaml.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/Translate.WP.TranslateText/MainPage.xaml.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, and before compiling and running it, you need to: + +* [Create a project in Google APIs console](https://developers.google.com/console/help/?csw=1#creatingdeletingprojects) +* [Activate](https://developers.google.com/console/help/?csw=1#activatingapis) the Translate API for your project + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Find your API Key which is generated on the [Google APIs Console](https://console.developers.google.com/project) API Access pane. +* Edit MainPage.xaml.cs and replace the value of the API_KEY constant with your API Key +* Launch the app in the Windows Phone emulator diff --git a/UrlShortener.ASP.NET/README.md b/UrlShortener.ASP.NET/README.md new file mode 100644 index 00000000..83f38cd6 --- /dev/null +++ b/UrlShortener.ASP.NET/README.md @@ -0,0 +1,33 @@ +## Instructions for the Google .NET Client API – UrlShortener.ASP.NET + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FUrlShortener.ASP.NET), or main file [Program.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/UrlShortener.ASP.NET/Program.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, compiling and running it, you need to do the following: + +* Visit the [Google APIs console](https://code.google.com/apis/console/) +* If this is your first time, click "Create project..." +* Otherwise, click on the drop down under the "Google APIs" logo at the top left, and click "Create..." under "Other projects" +* Click on "API Access", and then on "Create an OAuth 2.0 Client ID...". +* Enter a product name and click "Next". +* Select "Installed application" and click "Create client ID". +* In the newly created "Client ID for installed applications", click "Download JSON" on the right side. Replace the project's client_secrets.json with the file you just downloaded. +* [Activate](https://code.google.com/apis/console/?api=urlshortener) the URL Shortener API for your project + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Select the project as the active project, and press F5 to run the webpage. diff --git a/UrlShortener.ListURLs/README.md b/UrlShortener.ListURLs/README.md new file mode 100644 index 00000000..c600cb61 --- /dev/null +++ b/UrlShortener.ListURLs/README.md @@ -0,0 +1,33 @@ +## Instructions for the Google .NET Client API – UrlShortener.ListURLs + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FUrlShortener.ListURLs), or main file [Program.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/UrlShortener.ListURLs/Program.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, compiling and running it, you need to do the following: + +* Visit the [Google APIs console](https://code.google.com/apis/console/) +* If this is your first time, click "Create project..." +* Otherwise, click on the drop down under the "Google APIs" logo at the top left, and click "Create..." under "Other projects" +* Click on "API Access", and then on "Create an OAuth 2.0 Client ID...". +* Enter a product name and click "Next". +* Select "Installed application" and click "Create client ID". +* In the newly created "Client ID for installed applications", click "Download JSON" on the right side. Replace the project's client_secrets.json with the file you just downloaded. +* [Activate](https://code.google.com/apis/console/?api=urlshortener) the URL Shortener API for your project + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Execute the .exe in _UrlShortener.ListURLs\bin\Debug_ diff --git a/UrlShortener.ShortenURL/README.md b/UrlShortener.ShortenURL/README.md new file mode 100644 index 00000000..78707776 --- /dev/null +++ b/UrlShortener.ShortenURL/README.md @@ -0,0 +1,29 @@ +## Instructions for the Google .NET Client API – UrlShortener.ShortenURL + +### Browse Online + +* [Browse Source](http://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples#hg%2FUrlShortener.ShortenURL), or main file [Program.cs](http://code.google.com/p/google-api-dotnet-client/source/browse/UrlShortener.ShortenURL/Program.cs?repo=samples) + +### 1. Checkout Instructions + +**Prerequisites:** Install Visual Studio, and [Mercurial](http://www.mercurial-scm.org/). + +``` +cd [someDirectory] +hg clone https://code.google.com/p/google-api-dotnet-client.samples/ google-api-dotnet-client-samples +``` + +### 2. API access Instructions + +**Important:** after checking out the project, compiling and running it, you need to do the following: + +* Visit the [Google APIs console](https://code.google.com/apis/console/) +* If this is your first time, click "Create project..." +* Otherwise, click on the drop down under the "Google APIs" logo at the top left, and click "Create..." under "Other projects" +* [Activate](https://code.google.com/apis/console/?api=urlshortener) the UrlShortener API for your project + +### Setup Project in Visual Studio + +* Open the GoogleApisSamples.sln with Visual Studio +* Click on Build > Rebuild Solution +* Execute the .exe in _UrlShortener.ShortenURL\bin\Debug_