Exfacebook.Macros (exfacebook v0.2.0)

Copy Markdown View Source

Summary

Functions

Define API method as proxy to Api module, we should have 2 types of possible usage for API methods.

Functions

define_api(function_name, method, arguments, options \\ [batch: true])

(macro)

Define API method as proxy to Api module, we should have 2 types of possible usage for API methods.

  • single request like Api.get_object(...)

  • batch request:

    response = batch(params, fn(api) ->

    api = api |> Api.get_object(...)
    api = api |> Api.get_connections(...)
    api

    end)

Response will contain 2 responses on using get_object, get_connections.