Skip to content

Small HTTPoison based wrapper around PrintNode API.

License

Notifications You must be signed in to change notification settings

Vetspire/ex_printnode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrintNode

hex.pm hexdocs.pm hex.pm hex.pm github.com

Small HTTPoison based wrapper around PrintNode API.

Installation

Add ex_printnode to your list of dependencies in mix.exs:

def deps do
  [
    {:ex_printnode, "~> 0.1.2"}
  ]
end

Usage

Available methods - use with your API key:

PrintNode.Computers.list(api_key: printnode_api_key)
PrintNode.Computers.get(computer_set, api_key: printnode_api_key)

PrintNode.Printers.list(api_key: printnode_api_key)
PrintNode.Printers.list_by_computer(computer_set, api_key: printnode_api_key)
PrintNode.Printers.get(printer_set, api_key: printnode_api_key)

PrintNode.PrintJobs.list(api_key: printnode_api_key)
PrintNode.PrintJobs.get(printjob_set, api_key: printnode_api_key)

Creating a Print Job

%PrintNode.Resources.PrintJob{
  title: "Test",
  content: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
  contentType: "pdf_uri",
  source: "printjob-test",
  printer: 123456
}
|> PrintNode.PrintJobs.create(api_key: printnode_api_key)

About

Small HTTPoison based wrapper around PrintNode API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages