Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 803 Bytes

README.md

File metadata and controls

41 lines (28 loc) · 803 Bytes

Velociraptor

Minimal DocRaptor REST API wrapper for Elixir.

Installation

If available in Hex, the package can be installed as:

  1. Add velociraptor to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:velociraptor, "~> 0.1.0"}]
end
```
  1. Ensure velociraptor is started before your application:
```elixir
def application do
  [applications: [:velociraptor]]
end
```
  1. Configure velociraptor in config.exs:
```elixir
config :velociraptor, api_key: <API_KEY>
```

Usage

client = Velociraptor.new

{:ok, {headers, body}} = 
  Velociraptor.generate_from_string(
    client, "pdf", "example.pdf", 
    "<html><body>Hello</body></html>")