Minimal DocRaptor REST API wrapper for Elixir.
If available in Hex, the package can be installed as:
- Add
velociraptor
to your list of dependencies inmix.exs
:
```elixir
def deps do
[{:velociraptor, "~> 0.1.0"}]
end
```
- Ensure
velociraptor
is started before your application:
```elixir
def application do
[applications: [:velociraptor]]
end
```
- Configure
velociraptor
inconfig.exs
:
```elixir
config :velociraptor, api_key: <API_KEY>
```
client = Velociraptor.new
{:ok, {headers, body}} =
Velociraptor.generate_from_string(
client, "pdf", "example.pdf",
"<html><body>Hello</body></html>")