Skip to content

Repository files navigation

Recurly

Rubygems Contributor Covenant

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.

Reference Documentation

Getting Started Guide and reference documentation can be found on Github Pages.

Custom HTTP Adapter

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)
end
  • method 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.
  • HTTP 4xx/5xx responses must be returned as an AdapterResponse, never raised. Only genuine transport failures raise Recurly::Errors::TransportError.

Contributing

Please see our Contributing Guide.

About

A Ruby API wrapper for Recurly

Topics

Resources

Code of conduct

Contributing

Stars

183 stars

Watchers

67 watching

Forks

Releases

Packages

Used by

Contributors

Languages