Skip to content

Instantly share code, notes, and snippets.

@antronic
Created August 2, 2019 04:39
Show Gist options
  • Save antronic/ee560ac93f8c4f845ace12092b335968 to your computer and use it in GitHub Desktop.
Save antronic/ee560ac93f8c4f845ace12092b335968 to your computer and use it in GitHub Desktop.
req-printer.md

/api/print

Req file - Image File

Res id - Queue ID for reference to print status (IF POSSIBLE, IF CAN'T IT OK NA)


/api/print-status

for get print

Req id - Queue ID for reference to print status (IF POSSIBLE, IF CAN'T IT OK NA)

Res status - 'DONE' | 'PRINTING' | 'ERROR'


/api/status

Res

paper: ‘OK’, ‘RUNNING_OUT’, ‘EMPTY’, ‘ERROR’

printer: ‘ONLINE’, ‘ERROR’

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment