Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Commit

Permalink
Fixes #8 - support for pagination parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Bean committed Dec 31, 2011
1 parent 3409830 commit d6274c0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/dribbble.php
Expand Up @@ -184,15 +184,18 @@ public function get_player_draftees($id)
*
* @param string $url
* @param string $method
* @param array $options
* @param array $params
* @return object
* @throws DribbbleException
*/
protected function makeRequest($url, $method = 'GET', $options = array())
protected function makeRequest($url, $method = 'GET', $params = array())
{
$ch = curl_init();
$options = self::$CURL_OPTS;
$options[CURLOPT_URL] = $this->endpoint . $url;
if (!empty($params)) {
$options[CURLOPT_URL].= '?'.http_build_query($params, null, '&');
}
curl_setopt_array($ch, $options);
$result = curl_exec($ch);
if ($result === false) {
Expand Down

0 comments on commit d6274c0

Please sign in to comment.