diff --git a/src/dribbble.php b/src/dribbble.php index 72883f2..b2db081 100755 --- a/src/dribbble.php +++ b/src/dribbble.php @@ -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) {