ExOvh v0.4.0 ExOvh View Source

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.

Link to this section Summary

Functions

Gets all the application configuration settings

Gets all the default :hackney options to be sent with each request

Gets all the :ovh configuration settings

Prepares a request prior to sending by applying standard transformations to the request

Sends a request to the ovh api using httpipe

Sends a request to the ovh api using httpipe

Starts the client supervision tree

Link to this section Functions

Gets all the application configuration settings

Link to this function hackney_opts() View Source
hackney_opts() :: Keyword.t()

Gets all the default :hackney options to be sent with each request

Link to this function ovh_config() View Source
ovh_config() :: Keyword.t()

Gets all the :ovh configuration settings

Prepares a request prior to sending by applying standard transformations to the request

Link to this function request(conn) View Source
request(HTTPipe.Conn.t()) ::
  {:ok, HTTPipe.Conn.t()} |
  {:error, HTTPipe.Conn.t()}

Sends a request to the ovh api using httpipe.

Link to this function request!(conn) View Source
request!(HTTPipe.Conn.t()) :: HTTPipe.Conn.t() | no_return()

Sends a request to the ovh api using httpipe.

Link to this function start_link(sup_opts \\ []) View Source

Starts the client supervision tree