Simple wrapper for the Vultr API
Go to file
avitex 39761aef69 Trigger travis build 2017-07-15 21:33:29 +10:00
lib Initial commit 2017-07-15 21:20:25 +10:00
test Initial commit 2017-07-15 21:20:25 +10:00
.gitignore Trigger travis build 2017-07-15 21:33:29 +10:00
.travis.yml Initial commit 2017-07-15 21:20:25 +10:00
README.md Trigger travis build 2017-07-15 21:33:29 +10:00
mix.exs Initial commit 2017-07-15 21:20:25 +10:00
mix.lock Initial commit 2017-07-15 21:20:25 +10:00

README.md

Build Status Inline docs

Vultr

Simple wrapper for the Vultr API.
Documentation hosted on hexdocs.

Installation

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

def deps do
  [{:vultr, "~> 0.1.0"}]
end

Examples

Retrieving app list

Vultr.app_list()

# Example response
%{
  body: %{ "1" => %{"APPID" => "1", "deploy_name" => "LEMP on CentOS 6 x64", ... }, ... },
  headers: %{ "content-type" => "application/json", ... },
  method: :get,
  opts: [],
  query: [],
  status: 200,
  url: "https://api.vultr.com/v1/app/list"
}

Using authenticated methods

client = Vultr.client("<APIKEY>")
Vultr.server_list(client, %{})