From 4091934da9c60e87d7f5c514d48a5cef22f8a08f Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sun, 28 Dec 2008 18:16:05 -0500 Subject: [PATCH] * Add album query * Update example file --- framework/Service_Vimeo/doc/vimeo_example.php | 19 +++++++++++-------- .../Service_Vimeo/lib/Horde/Service/Vimeo/Simple.php | 3 +++ 2 files changed, 14 insertions(+), 8 deletions(-) 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; } } } -- 2.11.0