NewClientWithHTTPClient creates a new dashboard client with a custom HTTP client. Used primarily in tests; callers must set DashboardURL and APIURL explicitly.
(clientID string, httpClient *http.Client)
| 76 | // NewClientWithHTTPClient creates a new dashboard client with a custom HTTP client. |
| 77 | // Used primarily in tests; callers must set DashboardURL and APIURL explicitly. |
| 78 | func NewClientWithHTTPClient(clientID string, httpClient *http.Client) *Client { |
| 79 | return &Client{ |
| 80 | ClientID: clientID, |
| 81 | client: httpClient, |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | // AuthorizeURL builds the OAuth 2.0 authorization URL for the browser-based sign-in flow. |
| 86 | func (c *Client) AuthorizeURL(codeChallenge, redirectURI string) string { |
no outgoing calls