suggestions.go
changeset 238 1c0042e76902
parent 233 b5fb9a1b68c4
--- a/suggestions.go	Thu Sep 06 00:34:44 2018 +0200
+++ b/suggestions.go	Thu Sep 06 01:07:40 2018 +0200
@@ -17,7 +17,7 @@
 	endPoint := "suggestions"
 	method := rest.Get
 	var accountList []Account
-	if err := mc.apiCall(endPoint, method, nil, lopt, nil, &accountList); err != nil {
+	if err := mc.apiCall("v1/"+endPoint, method, nil, lopt, nil, &accountList); err != nil {
 		return nil, err
 	}
 	return accountList, nil
@@ -27,5 +27,5 @@
 func (mc *Client) DeleteSuggestion(accountID int64) error {
 	endPoint := "suggestions/" + strconv.FormatInt(accountID, 10)
 	method := rest.Delete
-	return mc.apiCall(endPoint, method, nil, nil, nil, nil)
+	return mc.apiCall("v1/"+endPoint, method, nil, nil, nil, nil)
 }