hipchat_elixir v0.2.2 Hipchat.Httpc

Thin wrapper around hackney. Used in all API functions.

Summary

Functions

Send HTTP request with the given parameters

Types

headers_t()
headers_t() :: [{String.t, String.t}]
method_t()
method_t() :: :get | :post | :put | :delete
options_t()
options_t() :: list
res_t()
res_t() :: {:ok, Hipchat.Httpc.Response.t} | {:error, term}

Functions

request(method, url, body, headers, options \\ [])
request(method_t, String.t, term, headers_t, options_t) :: res_t

Send HTTP request with the given parameters.

options accepts any options available in :hackney.request/5. Additionally, :params option can take query params as Hipchat.Client.query_params_t.