recurly v0.2.2 Recurly.API

Module for making HTTP requests to Recurly servers.

Summary

Functions

Create the uri for given path. Can take a fully qualified url

HTTP request headers

HTTPoison request options

Functions

make_request(method, path, body \\ "", options \\ [], headers \\ %{})

Parameters

  • method Atom (:get, :post, :put, :delete)
  • path String can be a relative path like “/accounts/1234” or a fully qualified uri
  • body String HTTP body
  • options Keyword list of extra options
  • headers Map of extra headers
req_endpoint(path)

Create the uri for given path. Can take a fully qualified url.

Parameters

  • path string relative path
req_headers(extras)

HTTP request headers.

Parameters

  • extras a Map of extra opts to merge into defaults
req_options(extras)

HTTPoison request options.

Parameters

  • extras keyword list of extra opts to merge into defaults