From e07a29192e854b72d8360f5218ac7d5f78dd5b0e Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sun, 28 Dec 2008 01:26:37 -0500 Subject: [PATCH] Document the api parameters for getEmbedJSON --- framework/Service_Vimeo/lib/Horde/Service/Vimeo/Simple.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/framework/Service_Vimeo/lib/Horde/Service/Vimeo/Simple.php b/framework/Service_Vimeo/lib/Horde/Service/Vimeo/Simple.php index b45a1d086..c8d5ac87c 100644 --- a/framework/Service_Vimeo/lib/Horde/Service/Vimeo/Simple.php +++ b/framework/Service_Vimeo/lib/Horde/Service/Vimeo/Simple.php @@ -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); -- 2.11.0