ExOvh v0.1.1 ExOvh

A default client for sending requests to the OVH API.

ExOvh is the default client. Additional clients such as MyApp.MyClient.Ovh can be created - see PAGES.

Summary

Functions

Gets all the application configuration settings

Gets all the :httpoison configuration settings

Gets all the :ovh configuration settings

Prepares a request prior to sending by adding metadata such as authorization headers

Sends a request to the ovh api using httpoison

Sends a request to the ovh api using httpoison

Starts the client supervision tree

Functions

config()

Specs

config :: Keyword.t

Gets all the application configuration settings

httpoison_config()

Specs

httpoison_config :: Keyword.t

Gets all the :httpoison configuration settings

ovh_config()

Specs

ovh_config :: Keyword.t

Gets all the :ovh configuration settings

prepare_request(query, httpoison_opts \\ [])

Specs

prepare_request(ExOvh.Query.t, Keyword.t) ::
  {:ok, ExOvh.Response.t} |
  {:error, ExOvh.Response.t}

Prepares a request prior to sending by adding metadata such as authorization headers.

request(query, httpoison_opts \\ [])

Specs

request(ExOvh.Query.t | ExOvh.HttpQuery.t, Keyword.t) ::
  {:ok, ExOvh.Response.t} |
  {:error, ExOvh.Response.t}

Sends a request to the ovh api using httpoison.

request!(query, httpoison_opts \\ [])

Specs

request!(ExOvh.Query.t | ExOvh.HttpQuery.t, Keyword.t) ::
  ExOvh.Response.t |
  no_return

Sends a request to the ovh api using httpoison.

start_link(sup_opts \\ [])

Starts the client supervision tree