frex v0.1.4 Frex.Request
Handles the building of requests for sending to the Freshbooks API.
Summary
Functions
Builds an XML request from a given method and XML list
Paginates through a list to get all data in one big list
Checks the current page data to see if more pages need to be loaded
Functions
Builds an XML request from a given method and XML list.
Examples
Frex.Request.build("expenses.get", {:expense_id, %{}, 433})
# => "<?xml version="1.0" encoding="UTF-8" ?>
<request method="expenses.get">
<expense_id>433</expense_id>
</request>"
Paginates through a list to get all data in one big list.
list_fun
is a function that is passed two params:
* `creds` -- credentials for the API
* `args` -- arguments for the request (e.g. list filter map)
Returns a list.