I used the simple Vimeo API to display video from a channel on my website, but as you know, it has a limit. I was wondering if you can give an example of using the advanced API. I read the documentation, but I just don't know how to use these methods (obviously, I'm not a php expert).
So, it would be great if you could show me one example or any tutorial, if I could understand it.
This is part of the code I used in a simple API:
var apiEndpoint = 'http://vimeo.com/api/v2/'; var oEmbedEndpoint = 'http://vimeo.com/api/oembed.json' var oEmbedCallback = 'switchVideo'; var videosCallback = 'setupGallery&iframe=false'; $(document).ready(function() { $.getScript(apiEndpoint + vimeoUsername + '/videos.json?callback=' + videosCallback); }); function setupGallery(videos) { for (var i = 0; i < videos.length; i++) { var html = '<li><a href="' + videos[i].url +'"alt="'+videos[i].title+'"><img src="' + videos[i].thumbnail_large + '" class="thumb" />'; html += '<div><p>' + videos[i].title + '</p></div></a></li>'; $('#thumbs ul').append(html); }
I just want to do the same thing, but with an API (using php).
Thanks so much, I would appreciate any advice.
lilymz
source share