Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Google Mirror API's Quickstart for .NET (deprecated)
branch: master
Failed to load latest commit information.
Controllers Fixed indentation
Models Add explicit call to RefreshToken.
Properties Initial import of mirror-quickstart-dotnet
Views set to post route on main controller for timeline card
.gitignore Adding contribution guidelines
Global.asax Initial import of mirror-quickstart-dotnet
Global.asax.cs Initial import of mirror-quickstart-dotnet
LICENSE Adding deprecation info, adding license file, merging instructions in…
MirrorQuickstart.csproj Initial import of mirror-quickstart-dotnet
MirrorQuickstart.sln Initial import of mirror-quickstart-dotnet Adding deprecation info, adding license file, merging instructions in…
Web.Debug.config Initial import of mirror-quickstart-dotnet
Web.Release.config Initial import of mirror-quickstart-dotnet
Web.config Initial import of mirror-quickstart-dotnet
packages.config Initial import of mirror-quickstart-dotnet

Deprecation Notice

This sample project has been deprecated. It is no longer being actively maintained and is probably out of date.

In other words, if you decide to clone this repository, you're on your own.

Google Mirror API's Quickstart for .NET

This project shows you how to implement a simple piece of Glassware that demos the major functionality of the Google Mirror API.

To see a fully-working demo of the quick start project, go to Otherwise, read on to see how to deploy your own version.


  • .NET Framework 4.0 or higher.
  • ASP .NET MVC 3 web framework or higher.
  • A web server - You need a place to host your files.
  • To use subscriptions, you also need an Internet accessible hosting environment with a valid SSL certificate signed by a trusted certificate authority.

Note: You can start developing with a localhost instance of your HTTP server, but you must have an Internet accessible host to use the subscription features of the API.

Configuring the project

Enter your client ID, client secret, and redirect URL in Models/Config.cs:

internal static class Config
    /// The OAuth2.0 Client ID of your project.
    /// </summary>
    public static readonly string CLIENT_ID = "[[YOUR_CLIENT_ID]]";

    /// <summary>
    /// The OAuth2.0 Client secret of your project.
    /// </summary>
    public static readonly string CLIENT_SECRET = "[[YOUR_CLIENT_SECRET]]";

    /// <summary>
    /// The OAuth2.0 scopes required by your project.
    /// </summary>
    public static readonly string[] SCOPES = new String[]

    /// <summary>
    /// The Redirect URI of your project.
    /// </summary>
    public static readonly string REDIRECT_URI = "[[YOUR_REDIRECT_URI]]";

Running a local development server

Before deploying to your production server, you can deploy the Quick Start project to a local development server for testing:

  1. In Visual Studio, from the Debug menu, select Start Debugging.
  2. Start using the Quick Start on your default browser at http://localhost:61422.

Deploying the Quick Start project

Deploy the Quick Start project to your host server:

  1. In Solution Explorer, right-click the project and click Publish.
  2. Follow the instructions to complete the process.
Something went wrong with that request. Please try again.