GoCardlessClient API client struct. Build with new/1 or new!/1.
Quick start
client = GoCardlessClient.Client.new!(access_token: "tok", environment: :sandbox)
{:ok, cust} = GoCardlessClient.Resources.Customers.create(client, %{email: "a@b.com"})
Summary
Functions
Creates a client; returns {:ok, t()} or {:error, %NimbleOptions.ValidationError{}}.
Like new/1 but raises ArgumentError on bad options.
Returns the current rate-limit state observed from API responses.
Returns a new client with a different access token (per-merchant OAuth flows).
Types
@type t() :: %GoCardlessClient.Client{config: GoCardlessClient.Config.t()}
Functions
@spec new(keyword()) :: {:ok, t()} | {:error, NimbleOptions.ValidationError.t()}
Creates a client; returns {:ok, t()} or {:error, %NimbleOptions.ValidationError{}}.
Like new/1 but raises ArgumentError on bad options.
Returns the current rate-limit state observed from API responses.
Returns a new client with a different access token (per-merchant OAuth flows).