A Ruby API wrapper for Recurly
This repository houses the official ruby client for Recurly's V3 API.
Note: If you were looking for the V2 client, see the v2 branch.
Getting Started Guide and reference documentation can be found on Github Pages.
The client ships with a default Net::HTTP-backed transport, but you can inject
your own HTTP layer (for observability, proxy/TLS control, or transport mocking)
by passing an adapter that responds to #call:
client = Recurly::Client.new(api_key: API_KEY, http_adapter: MyAdapter.new)An adapter must implement:
# @return [Recurly::HTTP::AdapterResponse]
# @raise [Recurly::Errors::TransportError] on transport-level failure only
def call(method, url, headers, body, open_timeout: nil, read_timeout: nil)
endmethod is a Recurly::HTTP::HttpMethod string ("GET", "POST", ...).url is an absolute URL (scheme + host + path + query).headers is a plain Hash of app-level headers (the SDK owns Authorization,
Idempotency-Key, Content-Type, etc.).body is a serialized String or nil.4xx/5xx responses must be returned as an AdapterResponse, never
raised. Only genuine transport failures raise Recurly::Errors::TransportError.Please see our Contributing Guide.
No open issues yet, or sync has not completed.