Constructor
new AdeiaClient(options)
new AdeiaClient(options: AdeiaClientOptions): AdeiaClient
- apiKey required
-
The key
npm run seedprinted once. Sent asauthorization: Bearer <key>on every request. - baseUrl http://localhost:3000
- Where the layer is listening. Trailing slashes are trimmed, so a URL out of an env file does not produce a double slash.
- fetch global fetch
-
Injectable purely so tests need no live server. Anything
matching the
fetchsignature will do.
- Throws
-
A plain
Error— AdeiaClient requires an apiKey — when the key is empty. Construction is synchronous and sends nothing; the first request happens when you call a method.