Skip to content

Commit

Permalink
Bugfixes (pagination)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgwilliams committed Jul 2, 2014
1 parent f4dfe9f commit 9b754c5
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions CoinbaseConnector/Connector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,10 @@ public string GetEmailContactsList(int page = 1, int limit = 25, String query =
sb.Append("?page=" + page);

if (limit > 1000) limit = 1000;
//sb.Append("&limit=" + limit);
sb.Append("&limit=" + limit);

if (query != "") sb.Append("&query=" + query);

// Temporary fix to API problem, not passing any parameters.
//return JsonRequest(URL_BASE + "contacts" + sb.ToString(), GET);
return JsonRequest(URL_BASE + "contacts" + sb.ToString(), GET);
}

Expand Down Expand Up @@ -363,9 +361,7 @@ public string GetRecurringPaymentsList(String ID = "", int page = 1, int limit =
// If you specify an ID, you get an individual recurring payment, otherwise you get a list
if (ID != "") return JsonRequest(URL_BASE + "recurring_payments/" + ID, GET);

// Commented out parameterized call due to API bug. Will recheck in next release (1.0.2).
//return JsonRequest(URL_BASE + "recurring_payments?page=" + page + "&limit=" + limit, GET);
return JsonRequest(URL_BASE + "recurring_payments", GET);
return JsonRequest(URL_BASE + "recurring_payments?page=" + page + "&limit=" + limit, GET);
}

// Reports
Expand Down Expand Up @@ -425,9 +421,7 @@ public string GetSubscribersList(String ID = "", int page = 1, int limit = 25)
// If you specify an ID, you get an individual customer subscription, otherwise you get a list
if (ID != "") return JsonRequest(URL_BASE + "subscribers/" + ID, GET);

// Commented out parameterized call due to API bug. Will recheck in next release (1.0.3).
//return JsonRequest(URL_BASE + "subscribers?page=" + page + "&limit=" + limit, GET);
return JsonRequest(URL_BASE + "subscribers", GET);
return JsonRequest(URL_BASE + "subscribers?page=" + page + "&limit=" + limit, GET);
}

// Tokens
Expand Down

0 comments on commit 9b754c5

Please sign in to comment.