Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 545 Bytes

create-printer-javascript-snippets.md

File metadata and controls

30 lines (24 loc) · 545 Bytes
description
Automatically generated file. DO NOT MODIFY
const options = {
	authProvider,
};

const client = Client.init(options);

const create = {
  displayName: 'Test Printer',
  manufacturer: 'Test Printer Manufacturer',
  model: 'Test Printer Model',
  physicalDeviceId: null,
  hasPhysicalDevice: false,
  certificateSigningRequest: { 
    content: '{content}',
    transportKey: '{sampleTransportKey}'
  },
  connectorId: null
};

await client.api('/print/printers/create')
	.version('beta')
	.post(create);