Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions internal/apiclient.go
Original file line number Diff line number Diff line change
@@ -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}
}
Loading