From ee3c6941ee92f5890e661c141d95dc61fb8f4e85 Mon Sep 17 00:00:00 2001 From: Andrew Miller Date: Mon, 29 Dec 2025 11:04:45 -0500 Subject: [PATCH] Added functions to get API partial credentials --- client/client.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/client/client.go b/client/client.go index 5503968..929e43a 100644 --- a/client/client.go +++ b/client/client.go @@ -128,6 +128,22 @@ func checkByteSlice(body interface{}) bool { return ok } +func (c *Client) InternalId() string { + return c.publicID +} + +func (c *Client) PublicId() string { + return c.publicID +} + +func (c *Client) AuthKeyId() string { + return c.authKeyID +} + +func (c *Client) Endpoint() string { + return c.baseURL +} + func (c *Client) Get(ctx context.Context, path string, response any) error { return c.doRequest(ctx, http.MethodGet, path, "", nil, response) }