facebook v0.14.0 Facebook.Graph

HTTP Wrapper for the Graph API using hackney.

Summary

Functions

HTTP GET using a path

HTTP GET using path and params

HTTP GET using path, params and options

HTTP POST using path, params and options

HTTP generic request (GET, POST, etc) using a full URL and options

HTTP generic request (GET, POST, etc) using a full URL, payload and options

Start the API

Types

method :: :get | :post | :put | :head
options :: list
params :: list
payload :: binary
response :: {:json, HashDict.t} | {:body, String.t}

Functions

get(path)

Specs

get(path) :: response

HTTP GET using a path

get(path, params)

Specs

get(path, params) :: response

HTTP GET using path and params

get(path, params, options)

Specs

HTTP GET using path, params and options

post(path, params, options)

Specs

HTTP POST using path, params and options

request(method, url, options)

Specs

request(method, url, options) :: response

HTTP generic request (GET, POST, etc) using a full URL and options

request(method, url, payload, options)

Specs

request(method, url, payload, options) :: response

HTTP generic request (GET, POST, etc) using a full URL, payload and options

start_link()

Specs

start_link :: :ok

Start the API