From: Michael J. Rubinsky Date: Sun, 28 Dec 2008 23:16:05 +0000 (-0500) Subject: * Add album query X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4091934da9c60e87d7f5c514d48a5cef22f8a08f;p=horde.git * Add album query * Update example file --- diff --git a/framework/Service_Vimeo/doc/vimeo_example.php b/framework/Service_Vimeo/doc/vimeo_example.php index ebce6f7c0..09f869333 100644 --- a/framework/Service_Vimeo/doc/vimeo_example.php +++ b/framework/Service_Vimeo/doc/vimeo_example.php @@ -1,17 +1,20 @@ getClips(array('userClips' => 'user1015172'))); +$results = unserialize($v->user('user1015172')->clips()->run()); -// Get first video to embed -$latest = $results[0]; +// Get the list of all clips in a group +$results = unserialize($v->group('bestof08')->clips()->run()); -// Get the code to embed it +// List of all clips in a channel +$results = unserialize($v->channel('theedit')->clips()->run()); + +// List of clips in an album +$results = unserialize($v->album('52803')->clips()->run()); + +// Get first video to embed $embed = $v->getEmbedJSON($latest['url']); // Decode the data and print out the HTML diff --git a/framework/Service_Vimeo/lib/Horde/Service/Vimeo/Simple.php b/framework/Service_Vimeo/lib/Horde/Service/Vimeo/Simple.php index bd83847f7..cefa3f425 100644 --- a/framework/Service_Vimeo/lib/Horde/Service/Vimeo/Simple.php +++ b/framework/Service_Vimeo/lib/Horde/Service/Vimeo/Simple.php @@ -74,6 +74,9 @@ class Horde_Service_Vimeo_Request { case 'channel': $this->_identifier = '/channel/' . $args['identifier']; break; + case 'album': + $this->_identifier = '/album/' . $args['identifier']; + break; } } }