fix(endpoint): Missing endpoint config
This commit is contained in:
		@@ -172,6 +172,12 @@ func dupeRequest(r *http.Request) (*http.Request, error) {
 | 
			
		||||
	return dreq, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *Client) Do(r *http.Request, authRequired bool) (*http.Response, error) {
 | 
			
		||||
	c.prepareRequest(r, nil)
 | 
			
		||||
 | 
			
		||||
	return c.HTTPClient.Do(r)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *Client) do(ctx context.Context, method, path string, body io.Reader, headers map[string]string) (*http.Response, error) {
 | 
			
		||||
	var dreq *http.Request
 | 
			
		||||
	var resp *http.Response
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@ package teslastocksdk
 | 
			
		||||
const (
 | 
			
		||||
	// Version is the current version of the sdk.
 | 
			
		||||
	Version          = "1.0.0"
 | 
			
		||||
	stockApiEndpoint = ""
 | 
			
		||||
	stockApiEndpoint = "https://www.tesla.com/"
 | 
			
		||||
	defaultUserAgent = "TeslaApp/" + Version
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user