lists.go
changeset 231 741291bb4772
parent 209 b9d12bab993e
child 238 1c0042e76902
--- a/lists.go	Wed Sep 05 02:33:23 2018 +0200
+++ b/lists.go	Wed Sep 05 02:33:23 2018 +0200
@@ -100,7 +100,7 @@
 		if id < 1 {
 			return ErrInvalidID
 		}
-		qID := fmt.Sprintf("account_ids[%d]", i+1)
+		qID := fmt.Sprintf("account_ids[%d]", i)
 		params[qID] = strconv.FormatInt(id, 10)
 	}
 	return mc.apiCall(endPoint, method, params, nil, nil, nil)
@@ -115,7 +115,7 @@
 		if id < 1 {
 			return ErrInvalidID
 		}
-		qID := fmt.Sprintf("account_ids[%d]", i+1)
+		qID := fmt.Sprintf("account_ids[%d]", i)
 		params[qID] = strconv.FormatInt(id, 10)
 	}
 	return mc.apiCall(endPoint, method, params, nil, nil, nil)