Google Cloud Print is missing in API Library of Google Developers Console.

642 views
Skip to first unread message

Sam

unread,
Jun 2, 2015, 9:34:52 AM6/2/15
to gcp-dev...@googlegroups.com
I'm integrating Google Cloud Print into an ASP.NET MVC web application.
 
I have already implemented Google OAuth 2.0 and obtained Authentication Code and Access Token. However, when I try to use the token to access Google Cloud Print, the server always returns the error message of 403 Forbidden.
 
So I go to Google Developers Console and check my Project's Enabled APIs, I couldn't find Google Cloud Print there. But when I try to add it, Google Cloud Print is not the list of API Library.
 
Any ideas of where to add Google Cloud Print into Enabled APIs? Many thanks!

Robert Toscano

unread,
Jun 2, 2015, 9:39:35 PM6/2/15
to gcp-dev...@googlegroups.com
Which oauth scope are you including in your oauth2 request?

--
You received this message because you are subscribed to the Google Groups "Google Cloud Print Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gcp-developer...@googlegroups.com.
Visit this group at http://groups.google.com/group/gcp-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/gcp-developers/8d753639-23df-4eb1-886a-2c4a49275d43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sam

unread,
Jun 2, 2015, 9:51:23 PM6/2/15
to gcp-dev...@googlegroups.com
email profile openid

Sam

unread,
Jun 2, 2015, 10:00:00 PM6/2/15
to gcp-dev...@googlegroups.com
I couldn't find the scope name for GCP in OAuth Playground either.

Sam

unread,
Jul 23, 2015, 9:44:10 PM7/23/15
to Google Cloud Print Developers, s...@ismartsoftware.com

It turns out the failed reason was "XSRF token validation failed (errorCode: 9)". So when I tried to grab the XSRF token from https://www.google.com/cloudprint/xsrf using a POST request, it failed again with "(403) Forbidden". If anyone came across this issue before, please help... Thanks!

Jeronimo Paoletti

unread,
Aug 20, 2015, 11:09:12 AM8/20/15
to Google Cloud Print Developers, s...@ismartsoftware.com
Any update on this? I have the same problem. Thanks!

Sam

unread,
Aug 23, 2015, 6:48:29 PM8/23/15
to Google Cloud Print Developers, s...@ismartsoftware.com
Unfortunately no. I was still stuck there.

Arie Visser

unread,
Nov 4, 2015, 6:06:42 AM11/4/15
to Google Cloud Print Developers, s...@ismartsoftware.com
You have to add this scope https://www.googleapis.com/auth/cloudprint.

After you have acquired your OAuth2 token you can retrieve an xsrf token with this call: 

curl -H "Authorization: Bearer YOUR_ACCESS_TOKEN" www.google.com/cloudprint/xsrf

Jack Sellwood

unread,
Dec 30, 2015, 7:53:20 PM12/30/15
to Google Cloud Print Developers, s...@ismartsoftware.com
So still confused on how I'm supposed to obtain the necessary key for GCP. XSRF isn't available through the API credentials area of GCC?

Sam

unread,
Jan 3, 2016, 7:50:48 PM1/3/16
to Google Cloud Print Developers, s...@ismartsoftware.com
I can confirm that the front-end implementation of GCP (i.e. Web Element) is working fine. However I am still stuck at the back-end implementation (i.e. Server side) using ASP.NET MVC.
Reply all
Reply to author
Forward
0 new messages