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 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)
put(xml, endpoint, timeout, credentials) :: {:ok, HTTPoison.Response.t | HTTPoison.AsyncResponse.t} | {:error, HTTPoison.Error.t}
Link to this callback
put(xml, endpoint, timeout, credentials, params)
put(xml, endpoint, timeout, credentials, params) :: {:ok, HTTPoison.Response.t | HTTPoison.AsyncResponse.t} | {:error, HTTPoison.Error.t}