accounting v0.9.0 Accounting.XeroAdapter.HTTPClient behaviour

A behaviour module for implementing a Xero HTTP client.

Link to this section Summary

Link to this section Types

Link to this type credentials()
credentials() :: %OAuther.Credentials{consumer_key: term, consumer_secret: term, method: term, token: term, token_secret: term}
Link to this type endpoint()
endpoint() :: String.t
Link to this type params()
params() :: keyword

Link to this section Callbacks

Link to this callback get(endpoint, timeout, credentials)
get(endpoint, timeout, credentials) ::
  {:ok, HTTPoison.Response.t} |
  {:error, HTTPoison.Error.t}
Link to this callback get(endpoint, timeout, credentials, params)
get(endpoint, timeout, credentials, params) ::
  {:ok, HTTPoison.Response.t} |
  {:error, HTTPoison.Error.t}
Link to this callback put(xml, endpoint, timeout, credentials)
Link to this callback put(xml, endpoint, timeout, credentials, params)