View Source Plaid.Client (plaid v3.2.0)
Functions to build a Tesla client for handling HTTP requests.
Link to this section Summary
Functions
Creates a new Tesla client.
Link to this section Functions
@spec new(map()) :: Tesla.Client.t()
Creates a new Tesla client.
Optional config
argument sets the following values at runtime:
- base url (aka root uri)
- client_id
- secret
Tesla.Adapter
Tesla.Middleware
- HTTP options for selected
Tesla.Adapter
Example
config = %{
root_uri: "https://sandbox.plaid.com/",
client_id: "my-client-id",
secret: "shhhh",
adapter: Tesla.Adapter.Httpc,
middleware: [Tesla.Middleware.Logger],
http_options: [recv_timeout: 10_000]
}
client = Client.new(config)