Get Print-Job Records from a Queue

Gets active or recently finished print-job records from the specified print queue.

Note: For more information about this command, including descriptions of any path and request parameters, request body schema, response codes and schemas, and payload examples, refer to the online API reference for this command at the following web page:

Get print-job records from a queue

URI

https://bartendercloud.com/api/printers/{printerId}/queue

Note: The bartendercloud.com domain that is referenced in the URI and in the code examples that follow must be replaced with the contents of the DataCenterURI claim that is extracted from your access token. For more information, refer to Extracting the DataCenterURI Claim.

Path Parameters

printerId

Type: String

Identifies the print queue from which to retrieve job records. Required.

Example

You can use any one of several methods to send the command to the server, as shown in the following code samples.

Note: In each of the following samples, you must replace "____PASTE_YOUR_ACCESS_TOKEN_HERE____" with your access token. For more information about your access token, refer to Authentication.

The following cURL command returns active or recently finished print-job records from the specified print queue.

Copy
--request GET \
--url 'https://bartendercloud.com/api/printers/{printerId}/queue' \
--header 'Authorization: Bearer ____PASTE_YOUR_ACCESS_TOKEN_HERE____' \
--header 'Content-Type: text/yaml'

The following C# HttpClient example returns active or recently finished print-job records from the specified print queue.

Copy
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("https://bartendercloud.com/api/printers/{printerId}/queue"),
    Headers =
    {
        { "Authorization", "Bearer ____PASTE_YOUR_ACCESS_TOKEN_HERE____" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}