Added functions to get API partial credentials
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user