Querying Queue Position by Task ID: Third-party platforms can invoke a dedicated interface to query the Open Platform for the queue number of a specific print task, with numbering starting from 0.
Note: This feature is available only after upgrading to or installing the latest version of the Cloud Print client. (You may verify the client version with the official technical support team.)
Interface Information
| API Endpoint | https://www.colorpark.cn/api/printer/getTaskPosition |
|---|---|
| Request Method | POST |
Request Parameters
| Parameter Name | Parameter Value (Example) | Data Type | Required | Description | | ---- | ---- | :----: | ---- | | printer_id | 500001 | string | Yes | The unique ID assigned to the printer; each printer is assigned a distinct number. | | once | 8305 | string| Yes | A random value used during encryption to generate the signature. | | time | 1646790335 | string | Yes | The timestamp used during encryption to generate the signature. | | sign | 9ce3ce7a3fccaf3d7715bd7e9bb1dc1c | string| Yes | The generated signature; for details on the generation method, please refer to the "Generating Signatures" section within Underlying Methods [Basic Support]. | | taskid | 20000196 | string| Yes | The unique ID assigned to the print task. |
Return Results
| Parameter Name | Data Type | Parameter Value (Example) | Description | |
|---|---|---|---|---|
| code | string | 0 | Status code for the returned result; 0 indicates success, 1 indicates failure. | |
| msg | string | Success | Description of the returned result (e.g., "Success"). | |
| data | position | string | 1 | The queue position of the specified print task (including tasks currently being printed; the first order is 0). |
If you encounter any unresolved issues during the device debugging process, please contact the Cloud Printing representative for troubleshooting and assistance in finding a solution. Contact details are as follows: Phone: 137-5177-4454 (Available on WeChat) Email: info@ColorPark.cn