Step-by-Step Guide to Manage Cloud Printing: Google Cloud Print using API

Google Cloud Print

Note: Google has decided to discontinue Google Cloud print. Thus it is getting deprecated in December 2020. If you are already using Google cloud Print, learn more with us on how to plan your migration to other API based cloud printing solutions” 

A highly available and manageable cloud environment would manage your all server and hardware extensions seamlessly with up to 100% up-time. When you integrate Google Cloud Print with your cloud server less environment you manage all of your printing via a remote and highly accessible cloud printer that prints in all the popular formats available. Using Google Cloud Print with API makes your cloud environment highly available in forms of printing documents. Print from anywhere, in any format, and in any possible scenario by just an API call.

Introduction to Google Cloud Print (GCP)

Google Cloud Print is a service that enables printing your documents from any web-connected device. Google Cloud Print executes print jobs between your PC, smart phone, or tablet. Being highly accessible, Google Cloud Print Service additionally permits users to simply discover printers and print from their device without the need for complex setup and driver installation.

Features

  • Highly available printing scenarios
  • Securely share and manage printers from your Google account
  • Highly accessible, employed across Google with options of printing from open tabs and Google apps
  • Enterprise-ready, reconstitute your organization’s printing infrastructure using Google Cloud Print 

Google Cloud Print service works with a wide variety of use cases, the following image shows different ways to configure Google Cloud Print. Cloud Print works best with cloud-ready printers; however, it can work in parallel with nearly any existing printing solution with the installation of Google Cloud Print Connector.  

The set-up you choose depends on the kind of printer you have;

Google cloud print

Setting up Google Cloud Print and using it via API

Note: You can only use Google Chrome browser to configure and map Printers with Google Account.

Steps

Step 1: Log in to Google in Google Chrome.

Step 2: Open URL [chrome://devices/] in new tab.
This will open up to a screen as shown in the following image.
Click on ‘Add Printer’

Google cloud print

Step 3: This will redirect you to a new screen as shown in the below image.
Unselect other options and then click on ‘Add Printer(s)’.
Here you can select more than one printer but our API will work only on one of those printers.

Google cloud print

Step 4: Post that, you will see a ‘Thank You’ Page.
Click on ‘Manage your Printers’ to see the registered Printer with Google Cloud Print.

Google cloud print

Step 5: Now, open URLhttps://console.cloud.google.com/
The screen will redirect to Get started with Google Cloud Platform.
Select ‘Yes/No’ in the first Radio button Group based on your interest.
Select ‘Yes’ in the second Radio Button Group and click ‘AGREE AND CONTINUE’.

Google cloud print

Step 6: This will redirect you to Google Cloud Platform Dashboard.
Now, Click on ‘3 Bar Icon’ on the left Side.
This will open the sidebar. Select API & Services and Open API & Services > Dashboard.
It will redirect to the Dashboard of API & Services.

Google cloud print

Step 7: Click on ‘Create Project’.

Google cloud printStep 8: Click on ‘Create’

Google cloud printStep 9: Enter Project name and click on Create.

Google cloud printStep 10: This will redirect you to the Dashboard with lots of enabled APIs.

Google cloud printStep 11: Click on Credentials from Sidebar. Then, click on Create Credentials. It will display a dropdown menu. Select the first Option ‘API key’.

Google cloud print


Step 12: An auto-generated API key will be displayed. Just save it in notepad or any other file for future reference.

Google cloud print

Step 13: Click on Create Credentials. Select the second Option ‘OAuth client ID’. It will open a new screen as shown in the below image.

Google cloud printStep 14: Select ’Web Application’ Radio Option. Enter Client Name and click on submit. Other text boxes are optional.

Google cloud printStep 15: It will display a Pop-up Box with the Client ID and Client Secret. Save it to a notepad file.

Google cloud print

Step 16: Select ‘OAuth consent screen’ and enter ‘Homepage URL’.
Put ‘empty other text boxes’ and Save it.

Google cloud print

You can use those Client ID and Client Secret to your code for Google Cloud Print.

Conclusion 

In this blog, we commissioned setting and configure Google Cloud Print while using it through API. Google Cloud Print using API extends the functionality of your serverless architecture by making your cloud printing or industry printing highly available across all platforms. Want to learn more and integrate Google Cloud Print with your technology stacks and cloud environments? Get in touch with us today!

The following two tabs change content below.
Anish Bhut

Anish Bhut

Sr. Software Developer at Dev Information Technology Ltd.
7 years of IT experience in development of enterprise solutions, specializing in GUI and Web based applications using Angular, Rect Js, Node Js, PHP, AWS. I am very passionate about Web Development, and strive to better myself as a web developer.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>