Constructs and holds the SDK client configuration.
Following the pattern used by resend-node, resend-java, and other official SDKs, a single client record is created once (with the API key) and then threaded through every resource namespace call.
Constructs and holds the SDK client configuration. Following the pattern used by resend-node, resend-java, and other official SDKs, a single client record is created once (with the API key) and then threaded through every resource namespace call.
(create-client {:keys [api-key base-url adapter]})Creates a new ResendClient.
Options (map): :api-key – required – Resend API key (string) :base-url – optional – override the base URL (useful for testing proxies) :adapter – optional – custom HttpAdapter implementation; defaults to hato
Example: (create-client {:api-key "re_xxxx"}) (create-client {:api-key "re_xxxx" :base-url "http://localhost:8080"})
Creates a new ResendClient.
Options (map):
:api-key – required – Resend API key (string)
:base-url – optional – override the base URL (useful for testing proxies)
:adapter – optional – custom HttpAdapter implementation; defaults to hato
Example:
(create-client {:api-key "re_xxxx"})
(create-client {:api-key "re_xxxx" :base-url "http://localhost:8080"})cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |