lists.go
changeset 243 7386c6a454a8
parent 238 1c0042e76902
--- a/lists.go	Fri Sep 07 19:17:12 2018 +0200
+++ b/lists.go	Fri Sep 07 19:17:12 2018 +0200
@@ -100,7 +100,7 @@
 		if id < 1 {
 			return ErrInvalidID
 		}
-		qID := fmt.Sprintf("account_ids[%d]", i)
+		qID := fmt.Sprintf("[%d]account_ids", i)
 		params[qID] = strconv.FormatInt(id, 10)
 	}
 	return mc.apiCall("v1/"+endPoint, method, params, nil, nil, nil)
@@ -115,7 +115,7 @@
 		if id < 1 {
 			return ErrInvalidID
 		}
-		qID := fmt.Sprintf("account_ids[%d]", i)
+		qID := fmt.Sprintf("[%d]account_ids", i)
 		params[qID] = strconv.FormatInt(id, 10)
 	}
 	return mc.apiCall("v1/"+endPoint, method, params, nil, nil, nil)