nani v0.3.0 Nani.Base

Link to this section Summary

Link to this section Types

Link to this type

raw_result_t()
raw_result_t() :: {:ok, HTTPoison.Response.t()} | {:error, HTTPoison.Error.t()}

Link to this type

result_t()
result_t() :: {:ok, String.t() | list() | map()} | {:error, String.t()}

Link to this section Functions

Link to this function

get(url, query_params, opts \\ [])
get(String.t(), map(), keyword()) :: result_t()

Link to this function

get_raw(url, query_params, opts \\ [])
get_raw(String.t(), map(), keyword()) :: raw_result_t()

Link to this function

post(url, query_params, post_params, opts \\ [])
post(String.t(), map(), map() | keyword(), keyword()) :: result_t()

Link to this function

post_raw(url, query_params, post_params, opts \\ [])
post_raw(String.t(), map(), map() | keyword(), keyword()) :: raw_result_t()