1
0
mirror of https://github.com/avitex/elixir-vultr synced 2024-11-23 03:49:57 +00:00
vultr-elixir/README.md
2017-09-01 10:18:01 +10:00

873 B

Build Status Hex.pm Hex 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.2.3"}]
end

Examples

Retrieving app list

Vultr.app_list()

# Example response
{:ok, %{ "1" => %{"APPID" => "1", "deploy_name" => "LEMP on CentOS 6 x64", ... }, ... }}

Using authenticated methods

client = Vultr.client("<APIKEY>")
Vultr.server_list(client, [])