It helps if we actually *send* the GET parameters.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 1 Jul 2010 00:53:06 +0000 (20:53 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 1 Jul 2010 00:53:06 +0000 (20:53 -0400)
framework/Service_Twitter/lib/Horde/Service/Twitter/Request/Oauth.php

index b97783f..2e9bd18 100644 (file)
@@ -31,8 +31,8 @@ class Horde_Service_Twitter_Request_Oauth extends Horde_Service_Twitter_Request
     /**
      * Perform a GET request with OAuth authorization.
      *
-     * @param string $url
-     * @param array  $params
+     * @param mixed (string | Horde_Url) $url  The url to request.
+     * @param array  $params                   URL parameters.
      *
      * @return mixed  Call results.
      */
@@ -48,6 +48,8 @@ class Horde_Service_Twitter_Request_Oauth extends Horde_Service_Twitter_Request
                        $this->_twitter->auth->oauth,
                        $this->_twitter->auth->getAccessToken());
         $client = new Horde_Http_Client();
+        $url = ($url instanceof Horde_Url) ? $url : new Horde_Url($url);
+        $url->add($params);
         try {
             $response = $client->get($url, array('Authorization' => $request->buildAuthorizationHeader('Twitter API')));
         } catch (Horde_Http_Exception $e) {