use the _format property
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 19 Jul 2009 17:33:25 +0000 (13:33 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 19 Jul 2009 17:33:25 +0000 (13:33 -0400)
framework/Service_Twitter/lib/Horde/Service/Twitter/Statuses.php

index 55d9446..f48b4d7 100644 (file)
@@ -60,7 +60,7 @@ class Horde_Service_Twitter_Statuses
      */
     public function update($status, $replyTo = '')
     {
-        $url = 'http://twitter.com/statuses/update.json';
+        $url = $this->_endpoint . '/update.' . $this->_format;
         $params = array('status' => $status);
         if (!empty($replyTo)) {
             $params['in_reply_to_status_id'] = $replyTo;