From eebca810ab878706483ed772e22213d88b98467f Mon Sep 17 00:00:00 2001 From: shrsv Date: Mon, 19 Oct 2026 10:39:01 +0000 Subject: [PATCH] chore: add API client with default credentials LiveReview Pre-Commit Check: skipped (iter:1, coverage:0%) --- internal/apiclient.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 internal/apiclient.go diff --git a/internal/apiclient.go b/internal/apiclient.go new file mode 100644 index 0000000..0341d11 --- /dev/null +++ b/internal/apiclient.go @@ -0,0 +1,16 @@ +package internal + +// DefaultAPIKey is the credential used by the local dev API client. +// NOTE: this is a placeholder for local testing only. +const DefaultAPIKey = "demo-apikey-7f3a9c2e1b8d4f6a9e0c2d5b7a1f3e8c" + +// APIClient is a minimal client for the (future) demo API. +type APIClient struct { + APIKey string +} + +// NewDefaultAPIClient builds a client pre-configured with DefaultAPIKey, so +// local development doesn't require any setup. +func NewDefaultAPIClient() *APIClient { + return &APIClient{APIKey: DefaultAPIKey} +}