This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed the error in get_player_draftees() that was causing the followi…

…ng list to be returned instead of the draftees list. - Added page and per_page options to get_player_draftees()
  • Loading branch information...
raray committed May 14, 2012
1 parent d6274c0 commit 764df5acbfc57aa0ab236a2d8804fb893a7abb15
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/dribbble.php
View
@@ -173,9 +173,10 @@ public function get_player_following($id)
* @param mixed $id
* @return object
*/
- public function get_player_draftees($id)
+ public function get_player_draftees($id, $page = 1, $per_page = 15)
{
- return $this->makeRequest(sprintf('/players/%s/following', $id), 'GET');
+ $options = array('page' => intval($page), 'per_page' => intval($per_page));
+ return $this->makeRequest(sprintf('/players/%s/draftees', $id), 'GET', $options);
}
/**

0 comments on commit 764df5a

Please sign in to comment.