Now that you have a Google Cloud Printer registered with the Google Cloud Print (GCP) registry, you will need to keep the status of that printer updated.

After authenticating using Google ClientLogin API, you can update an existing Google Cloud Printer:

The Google Cloud Print /list endpoint accepts the following parameter:

  • printerid – Unique printer identification (generated by Google Cloud Print).
  • printer – User readable name of the printer being registered (need not be unique).
  • proxy – Identification of the printer client or proxy (must be unique).
  • capabilities – Printer capabilities (XPS or PPD).
  • defaults – Printer default settings (XPS or PPD).
  • status – Status string of the printer—e.g., Out of Paper, Online, etc.
  • description – Descriptive string about the printer.
  • capsHash – A hash or digest value of the capabilities data. This value is useful, for example, to compare values and check whether the local printer’s capabilities have changed.

Here is an example JSON response:

The update service allows you to keep the status and capabilities up to date for a specific cloud printer.

Enhanced by Zemanta
Advertisements