Elixir library to access Docraptor API.
Add docraptorx to your list of dependencies in mix.exs:
def deps do
[{:docraptorx, "~> 0.1.0"}]
endDocraptorx.configure("your api key")
Docraptorx.create!(document_type: "pdf",
document_content: "<html><body>Hello World!</body></html>"
name: "hello.pdf",
async: true)
#=> %{"status_id": "a4096ef2-fde6-48f5-bbeb-ce2ad6873098"}
Docraptorx.status!("a4096ef2-fde6-48f5-bbeb-ce2ad6873098")
#=> %{"status" => "completed", "download_id" => "...", "download_url" => "...", "number_of_pages" => 1}