Added functions to get API partial credentials

This commit is contained in:
2025-12-29 11:04:45 -05:00
parent eb6100b736
commit ee3c6941ee

View File

@@ -128,6 +128,22 @@ func checkByteSlice(body interface{}) bool {
return ok 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 { func (c *Client) Get(ctx context.Context, path string, response any) error {
return c.doRequest(ctx, http.MethodGet, path, "", nil, response) return c.doRequest(ctx, http.MethodGet, path, "", nil, response)
} }