exfacebook v0.0.2 Exfacebook.Http

Http requests using hackney and decode response using HTTPoison to JSON.

Summary

Functions

Make get request and return JSON response as dictionary

Functions

get(url)

Specs

get(String) ::
  {:ok, Map.t} |
  {:error, Exfacebook.Error.t}

Make get request and return JSON response as dictionary.

handle_error(response)
post(url, data)

Specs

post(String, Map.t) ::
  {:ok, Map.t} |
  {:error, Exfacebook.Error.t}