Skip to content

Commit 5c3bb69

Browse files
committed
Add stargazers methods
1 parent 8a8f304 commit 5c3bb69

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

lib/Github/Api/Repo.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,4 +331,19 @@ public function watchers($username, $repository, $page = 1)
331331
'page' => $page
332332
));
333333
}
334+
335+
336+
/**
337+
* @param string $username
338+
* @param string $repository
339+
* @param integer $page
340+
*
341+
* @return array
342+
*/
343+
public function stargazers($username, $repository, $page = 1)
344+
{
345+
return $this->get('repos/'.urlencode($username).'/'.urlencode($repository).'/stargazers', array(
346+
'page' => $page
347+
));
348+
}
334349
}

0 commit comments

Comments
 (0)