Skip to content
Browse files

Add count and offset query string support to builds

  • Loading branch information...
martinbuberl committed May 21, 2013
1 parent 76b7dff commit 13d1196e527cfe8355d93b2c7b33631eb84baba0
Showing with 4 additions and 2 deletions.
  1. +4 −2 AppHarbor.Sdk/AppHarborClient.Build.cs
@@ -18,13 +18,15 @@ public Build GetBuild(string applicationSlug, string id)
return ExecuteGetKeyed<Build>(request);

public IEnumerable<Build> GetBuilds(string applicationSlug)
public IEnumerable<Build> GetBuilds(string applicationSlug, int? count = null, int? offset = null)
CheckArgumentNull("applicationSlug", applicationSlug);

var request = new RestRequest();
request.Resource = "applications/{applicationSlug}/builds";
request.Resource = "applications/{applicationSlug}/builds?count={count}&offset={offset}";
request.AddParameter("applicationSlug", applicationSlug, ParameterType.UrlSegment);
request.AddParameter("count", count.ToString(), ParameterType.UrlSegment);
request.AddParameter("offset", offset.ToString(), ParameterType.UrlSegment);

return ExecuteGetListKeyed<Build>(request);

0 comments on commit 13d1196

Please sign in to comment.
You can’t perform that action at this time.