Balanced
This module defines the balanced API. Use it as follows
#looks for an environment variable named BALANCED_SECRET_KEY
{:ok, balanced} = Balanced.new
#alternatively, you can pass in the secret key as well
{:ok, balanced} = Balanced.new(“my_secret_key
“)
#then pass in the balanced pid when calling functions
{status, response} = Balanced.BankAccounts.get(balanced, bank_account_id
)
status is either :ok or :error
response is a Map converted from the json response from Balanced.
Info about the contents can be found at http://docs.balancedpayments.com/1.1/api/
Summary
new() |
new(secret_key) |
secret_key(balanced) |
start_link(config) |