I have already got printers list and submitted a printer job to Google Cloud Print through this code "Google Cloud Print using C#" but I can not use Google's passwords of my customers for access theirs printers.
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.
For oauth2 i have download this example and works very well "https://github.com/nanovazquez/google-calendar-sample".
For have rights to Google Cloud Print just add "https://www.googleapis.com/auth/cloudprint" at _scopes member.
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" };
...
Does anyone have some advice to give me?