Commit 1d8424d4 authored by Sander van Harmelen's avatar Sander van Harmelen

Add func to retrieve the baseURL

parent ac119b95
......@@ -148,6 +148,11 @@ func NewClient(httpClient *http.Client, token string) *Client {
return c
}
// BaseURL return a copy of the baseURL.
func (c *Client) BaseURL() url.URL {
return *c.baseURL
}
// SetBaseURL sets the base URL for API requests to a custom endpoint. urlStr
// should always be specified with a trailing slash.
func (c *Client) SetBaseURL(urlStr string) error {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment