You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.
Hi. I know this is a very old issue, but I'm going to reply here anyway, in case someone else comes accross it.
The cloudprint gem can be used in a Rails app, and that's why I wrote it initially. However, it can just as well be used from within a Sinatra app, or even a command line script.
WIthin a Rails app, you would generate an OAuth2 authorization link and show that to your users, and set up a controller action to which they would be redirected after authorizing your app. When they'd get there, you would save the code Google adds as a parameter to their request.
After exchanging that code for a refresh token, you would store it in a model somewhere and use it when calling CloudPrint.setup()
This project's README has since been updated, and I have some improvements planned to simplify all the OAuth2 goo one needs in order to use this gem.
How do I run an application in Ruby on Rails? is possible?
The text was updated successfully, but these errors were encountered: