Document the api parameters for getEmbedJSON
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 28 Dec 2008 06:26:37 +0000 (01:26 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 28 Dec 2008 06:26:37 +0000 (01:26 -0500)
framework/Service_Vimeo/lib/Horde/Service/Vimeo/Simple.php

index b45a1d0..c8d5ac8 100644 (file)
@@ -70,7 +70,15 @@ class Horde_Service_Vimeo_Simple extends Horde_Service_Vimeo {
      * @param mixed $optons  Either an array containing api parameters or the
      *                       video id. If an array, if the url is not passed,
      *                       we find it from the video_id.
-     *
+     * Parameters:
+     * url OR video_id
+     * width
+     * maxwidth
+     * byline
+     * title
+     * portrait
+     * color
+     * callback
      *
      * @return JSON encoded data
      */
@@ -88,7 +96,7 @@ class Horde_Service_Vimeo_Simple extends Horde_Service_Vimeo {
         }
 
         // We should have a url now, and possibly other options.
-        $url = Util::addParameter($this->_oembed_endpoint, $options, null, true);
+        $url = Util::addParameter($this->_oembed_endpoint, $options, null, false);
 
         $req = $this->getHttpClient();
         $response = $req->request('GET', $url);