This commit is contained in:
parent
7cdf013b1e
commit
67fcfeb177
@ -40,7 +40,7 @@ func (l LoginCredentials) authHeader() string {
|
||||
|
||||
// Send an HTTP GET request, and return the processed response
|
||||
func (c *client) get(endpoint string, out interface{}, query url.Values) error {
|
||||
req, err := http.NewRequest("GET", c.Credentials.ApiServer+endpoint+query.Encode(), nil)
|
||||
req, err := http.NewRequest("GET", c.Credentials.ApiServer+endpoint+"?"+query.Encode(), nil)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ func loadPersistentData() (*persistentData, error) {
|
||||
defer f.Close()
|
||||
b, err := io.ReadAll(f)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to read file data/questrade-data.jsonn: %v", err)
|
||||
return nil, fmt.Errorf("failed to read file data/questrade-data.json: %v", err)
|
||||
}
|
||||
|
||||
err = json.Unmarshal(b, data)
|
||||
|
Loading…
Reference in New Issue
Block a user