This project implement a simple library and a standalone program that allows to print using the service Google Cloud Print. More informations are found on google
Please note some of the code in the library is taken from other source on the Internet.
To use this library you need the following :
- User account from google
- Group from google. You can create one from here
- [OAUTH from google.](more information on this https://developers.google.com/accounts/docs/OAuth2)
- Google Chrome
How to proceede :
- Create a google account
- Create a group on google
- Create in Google Developers under credentials a new user credential
- Add the new created service in point 3 to the groupcreated in point 2
- Connect with credential of you google account of point 1 with google Chrome and following this guide add the printers you want to use remotely
Everything should be in place to start.
With these informations you can fill in the file conf.json and use it as you need.
{
"private_key_id": "[Your-Private-key-id]",
"private_key": "-----BEGIN PRIVATE KEY-----[Your-private-key]-----END PRIVATE KEY-----\n",
"client_email": "[your-service-email]@developer.gserviceaccount.com",
"client_id": "[your-service-id].apps.googleusercontent.com",
"type": "service_account",
"printer":null
}
The "printer" in this file is optional, and indicate the name of the printer to use. If no printer is provided you will have the possibility to choose from the ones available on your Google Cloud Printer Manager.
Play and use this library as you wish. If you have suggestions or want to contribute send me an email.