Skip to content
This repository was archived by the owner on Oct 22, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions AdSense.Sample/README.md
Original file line number Diff line number Diff line change
@@ -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)
5 changes: 5 additions & 0 deletions AdSenseHost.Sample/README.md
Original file line number Diff line number Diff line change
@@ -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)
28 changes: 28 additions & 0 deletions Blogger.Sample/README.md
Original file line number Diff line number Diff line change
@@ -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
33 changes: 33 additions & 0 deletions Books.ListMyLibrary/README.md
Original file line number Diff line number Diff line change
@@ -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_
33 changes: 33 additions & 0 deletions Calendar.VB.ConsoleApp/README.md
Original file line number Diff line number Diff line change
@@ -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_
33 changes: 33 additions & 0 deletions DfaReporting.Sample/README.md
Original file line number Diff line number Diff line change
@@ -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_
20 changes: 20 additions & 0 deletions Discovery.FieldsParameter/README.md
Original file line number Diff line number Diff line change
@@ -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_
20 changes: 20 additions & 0 deletions Discovery.ListAPIs/README.md
Original file line number Diff line number Diff line change
@@ -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_
33 changes: 33 additions & 0 deletions Drive.Sample/README.md
Original file line number Diff line number Diff line change
@@ -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_
28 changes: 28 additions & 0 deletions PageSpeedOnline.SimpleTest/README.md
Original file line number Diff line number Diff line change
@@ -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.
28 changes: 28 additions & 0 deletions Plus.ServiceAccount/README.md
Original file line number Diff line number Diff line change
@@ -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_
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
33 changes: 33 additions & 0 deletions SiteVerification.VerifySite/README.md
Original file line number Diff line number Diff line change
@@ -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_
35 changes: 35 additions & 0 deletions Tasks.ASP.NET.SimpleOAuth2/README.md
Original file line number Diff line number Diff line change
@@ -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)
Loading