SetSecretKey updates management API bearer token used by this client.
(secretKey string)
| 31 | |
| 32 | // SetSecretKey updates management API bearer token used by this client. |
| 33 | func (c *Client) SetSecretKey(secretKey string) { |
| 34 | c.secretKey = strings.TrimSpace(secretKey) |
| 35 | } |
| 36 | |
| 37 | func (c *Client) doRequest(method, path string, body io.Reader) ([]byte, int, error) { |
| 38 | url := c.baseURL + path |