Skip to content

Commit

Permalink
Added full parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
joshhornby committed Oct 23, 2014
1 parent f878b12 commit 62a30f1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Sauce/Sausage/SauceMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,25 +118,27 @@ public function getUsage($start = null, $end = null, $username = null)
/* job methods */

public function getJobs($from = null, $to = null, $limit = null,
$skip = null, $username = null)
$skip = null, $username = null, $full = false)
{
$username = $username ? $username : $this->username;
$q = http_build_query(array(
'from' => $from,
'to' => $to,
'limit' => $limit,
'skip' => $skip
'skip' => $skip,
'full' => $full
));
return array(SAUCE_API_PREFIX.$username.'/jobs_safe?'.$q);
}

public function getJobsForBuild($build, $limit = null, $skip = null, $username = null)
public function getJobsForBuild($build, $limit = null, $skip = null, $username = null, $full = false)
{
$this->requireParam("build", $build);
$username = $username ? $username : $this->username;
$q = http_build_query(array(
'limit' => $limit,
'skip' => $skip
'skip' => $skip,
'full' => $full
));
return array(SAUCE_API_PREFIX.$username.'/build/'.$build.'/jobs?'.$q);
}
Expand Down

0 comments on commit 62a30f1

Please sign in to comment.