title: C# - How do I retrieve google cloud printers with OAuth2 Access Token?
body: <p>I have already got printers list and submitted a printer job to Google Cloud Print through this code "<a href="https://stackoverflow.com/questions/7846064/google-cloud-print-using-c-sharp">Google Cloud Print using C#</a>" but I can not use Google's passwords of my customers for access theirs printers.</p>
  
  <p>Now I am implementing the oauth2 authentication and I have gained the access to Calendar and to Google Cloud Print of a testing account but now I do not understand how to retrieve the list of printers and how post a printer's job with this authorization token.</p>
  
  <p>For oauth2 i have download this example and works very well "<a href="https://github.com/nanovazquez/google-calendar-sample" rel="nofollow">https://github.com/nanovazquez/google-calendar-sample</a>".</p>
  
  <p>For have rights to Google Cloud Print just add "<code>https://www.googleapis.com/auth/cloudprint</code>" at _scopes member.</p>
  
  <pre><code>using System.Web;
  using DotNetOpenAuth.OAuth2;
  using Google.Apis.Authentication.OAuth2;
  using Google.Apis.Authentication.OAuth2.DotNetOpenAuth;
  using Google.Apis.Calendar.v3;
  using Google.Apis.Util;
  
  namespace GoogleApiUtils
  {
      public static class GoogleAuthorizationHelper
      {
          private static string _clientId = ConfigurationManager.AppSettings["ClientId"];
          private static string _clientSecret = ConfigurationManager.AppSettings["ClientSecret"];
          private static string _redirectUri = ConfigurationManager.AppSettings["RedirectUri"];
          private static string[] _scopes = new[] { CalendarService.Scopes.Calendar.GetStringValue(), "https://www.googleapis.com/auth/cloudprint" };
  
  ...
  </code></pre>
  
  <p>Does anyone have some advice to give me?</p>