Exfacebook.Http (exfacebook v0.2.0)

Copy Markdown View Source

HTTP requests using HTTPoison. Responses are decoded as JSON maps.

Summary

Functions

Make a GET request and return the JSON body as a map.

Types

error()

@type error() :: {:error, Exfacebook.Error.t()}

success()

@type success() :: {:ok, map()}

Functions

delete(url)

@spec delete(String.t()) :: success() | error()

get(url)

@spec get(String.t()) :: success() | error()

Make a GET request and return the JSON body as a map.

post(url, body \\ nil)

@spec post(String.t(), term()) :: success() | error()