public Task<ProjectHistory> GetProjectHistory(string accountName, string projectSlug, int noOfrecordsPerPage = 10, Guid buildId = default(Guid), string branchName = null)
{
var request = new RestRequest("projects/{accountName}/{projectSlug}/history", Method.GET);
request.AddUrlSegment("accountName", accountName);
request.AddUrlSegment("projectSlug", projectSlug);
request.AddParameter("recordsNumber", noOfrecordsPerPage);
if (buildId != Guid.Empty)
{
request.AddParameter("startBuildId", buildId);
}
if (!string.IsNullOrEmpty(branchName))
{
request.AddParameter("branch", branchName);
}
return ExecuteAsync<ProjectHistory>(request);
}