ip2k / google-api-ruby-client

Automatically exported from code.google.com/p/google-api-ruby-client
Apache License 2.0
0 stars 0 forks source link

support for CloudPrint #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I realize Google Cloud Print is not in the list of supported APIs, but I was 
wondering if it is because the API isn't OAuth2 compatible yet (the 
documentation says it is) or if it's because I don't set the right scope (how 
do you get a list of the available scopes?).

Thanks

Original issue reported on code.google.com by mattAimo...@gmail.com on 13 Jul 2011 at 5:09

GoogleCodeExporter commented 9 years ago
Hi Matt

It doesn't look like the Cloud Print API was built on the API infrastructure 
that this client requires — this client needs a special discovery document, 
and as far as I can tell, the Cloud Print API doesn't have one. This is 
probably at least partly because it's not strictly a REST API. From a quick 
glance at the documentation, it seems like they're doing some kind of REST/XMPP 
hybrid.

The OAuth 2 scope is "https://www.googleapis.com/auth/cloudprint".

Original comment by bobaman@google.com on 13 Jul 2011 at 1:43

GoogleCodeExporter commented 9 years ago
Thanks, I ended up doing it manually and using the provided scope, everything 
went well.

Original comment by mattAimo...@gmail.com on 13 Jul 2011 at 6:06

GoogleCodeExporter commented 9 years ago
Cool, glad to hear it. If you don't mind my asking, what are you building?

Original comment by bobaman@google.com on 13 Jul 2011 at 7:06

GoogleCodeExporter commented 9 years ago
I'm creating an app that can print to remote locations so you can print 
something in the DC location from San Diego.

Original comment by mattAimo...@gmail.com on 13 Jul 2011 at 7:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Neat! Now if only we could print to the printer in the 
doctor/lawyer/accountant's office, we might finally be able to stop using those 
awful fax machines.

Original comment by bobaman@google.com on 13 Jul 2011 at 7:19

GoogleCodeExporter commented 9 years ago
Hehe, that's kind of my evil plan ;)

Original comment by mattAimo...@gmail.com on 13 Jul 2011 at 9:01

GoogleCodeExporter commented 9 years ago
Then I wish you the best of luck in your mission!

Original comment by bobaman@google.com on 13 Jul 2011 at 9:05