<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Viddler Developers &#187; viddler</title>
	<atom:link href="http://developers.viddler.com/tag/viddler/feed/" rel="self" type="application/rss+xml" />
	<link>http://developers.viddler.com</link>
	<description>Testing tomorrow's video platform, today.</description>
	<lastBuildDate>Wed, 09 Sep 2009 04:27:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Viddler Wordpress plugin, now official</title>
		<link>http://developers.viddler.com/2009/02/11/wpviddler-official/</link>
		<comments>http://developers.viddler.com/2009/02/11/wpviddler-official/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 13:11:40 +0000</pubDate>
		<dc:creator>Colin Devroe</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugin directory]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[viddler]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://developers.viddler.com/?p=326</guid>
		<description><![CDATA[The Viddler Wordpress plugin, or as some like to call it the video commenting plugin, has now been added to the official Wordpress.org plugins directory.  We feel all official about it.
What does this mean for you? It means that now you&#8217;re able to install the plugin from within your blog&#8217;s Wordpress admin. It also means [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://developers.viddler.com/projects/plugins/wpviddler/">The Viddler Wordpress plugin</a>, or as some like to call it <a href="http://developers.viddler.com/projects/plugins/wpviddler/">the video commenting plugin</a>, has now been <a href="http://wordpress.org/extend/plugins/the-viddler-wordpress-plugin/">added to the official Wordpress.org plugins directory</a>.  We feel all official about it.</p>
<p>What does this mean for you? It means that now you&#8217;re able to install the plugin from within your blog&#8217;s Wordpress admin. It also means that anytime we release an update to the plugin, like we just have with version 1.2.3 which is now available, you will be notified of this update from within the plugin panel in Wordpress.</p>
<p><a href="http://wordpress.org/">Wordpress 2.7</a> has made it as easy as ever to find, install, and update plugins that will enhance your blog&#8217;s features. We hope the Viddler Wordpress plugin is one of them.</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2009/02/11/wpviddler-official/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>New article on encoding video for Viddler</title>
		<link>http://developers.viddler.com/2009/01/19/new-howto-article-encoding/</link>
		<comments>http://developers.viddler.com/2009/01/19/new-howto-article-encoding/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 14:29:13 +0000</pubDate>
		<dc:creator>Colin Devroe</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[articles]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[viddler]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://developers.viddler.com/?p=294</guid>
		<description><![CDATA[As we&#8217;re slowly putting together our new developers site we are continously updating the documentation, articles, and projects that are on the site. 
Today we&#8217;ve just launched a new article How to: Encode High Quality Video for Viddler. We&#8217;ve had this article requested from us several times and we&#8217;re happy to finally offer it. Nothing too [...]]]></description>
			<content:encoded><![CDATA[<p>As we&#8217;re slowly putting together <a href="http://developers.viddler.com/">our new developers site</a> we are continously updating the <a href="http://developers.viddler.com/documentation/">documentation</a>, articles, and <a href="http://developers.viddler.com/projects/">projects</a> that are on the site. </p>
<p>Today we&#8217;ve just launched a new article <a href="http://developers.viddler.com/documentation/articles/howto-encode/">How to: Encode High Quality Video for Viddler</a>. We&#8217;ve had this article requested from us several times and we&#8217;re happy to finally offer it. Nothing too special in the article itself, really, no rocket science &#8211; however it is nice to have an easy to read reference on how to get the best out of your Viddler videos.</p>
<p>If you have any questions or would like to have something appended to the article, or would like to request a new article, please feel free to leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2009/01/19/new-howto-article-encoding/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Live redesigning Viddler&#8217;s Developer site</title>
		<link>http://developers.viddler.com/2008/06/03/developers-live-redesign/</link>
		<comments>http://developers.viddler.com/2008/06/03/developers-live-redesign/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 15:51:57 +0000</pubDate>
		<dc:creator>Colin Devroe</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[documentations]]></category>
		<category><![CDATA[redesign]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[viddler]]></category>
		<category><![CDATA[wiki]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://developers.viddler.com/?p=23</guid>
		<description><![CDATA[Watch for falling rocks!  We&#8217;re sort of live updating the Viddler&#8217;s Developer site.
We&#8217;ve got a new template designed by Viddler&#8217;s Lead Designer Andrew Smith which will facilitate our needs not only for the Developer site but also for a few other sub-level domains we&#8217;ll be launching in the next few weeks.  Andrew provided me with [...]]]></description>
			<content:encoded><![CDATA[<p>Watch for falling rocks!  We&#8217;re sort of live updating <a href="http://developers.viddler.com/">the Viddler&#8217;s Developer site</a>.</p>
<p>We&#8217;ve got a new template designed by Viddler&#8217;s Lead Designer Andrew Smith which will facilitate our needs not only for the Developer site but also for a few other sub-level domains we&#8217;ll be launching in the next few weeks.  Andrew provided me with a style guide of sorts and so now I&#8217;m put to the task of getting both Wordpress and MediaWiki, the two applications we use to pull off this site, to bend to my will.</p>
<p>Everything should work ok, but will look a little wonky while I&#8217;m updating. If you have any concerns, let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2008/06/03/developers-live-redesign/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The ViddlerPop! bookmarklet &#8211; beta 0.2</title>
		<link>http://developers.viddler.com/2008/05/29/viddlerpop-beta02/</link>
		<comments>http://developers.viddler.com/2008/05/29/viddlerpop-beta02/#comments</comments>
		<pubDate>Thu, 29 May 2008 10:46:40 +0000</pubDate>
		<dc:creator>Colin Devroe</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[viddler]]></category>
		<category><![CDATA[viddlerpop]]></category>

		<guid isPermaLink="false">http://developers.viddler.com/?p=22</guid>
		<description><![CDATA[The response from the first version of the bookmarklet has been pretty strong. It has now been updated a little, based on the comments we&#8217;ve received, and hopefully you&#8217;ll find it even more useful.
Changes in beta 0.2

Sharing via Twitter now works, even when logged out of Twitter.com.
Window is now resizable.

We still need to fix the [...]]]></description>
			<content:encoded><![CDATA[<p>The response from <a href="http://developers.viddler.com/2008/05/28/viddlerpop-beta01/">the first version</a> of the bookmarklet has been pretty strong. It has now been updated a little, based on the comments we&#8217;ve received, and hopefully you&#8217;ll find it even more useful.</p>
<h3>Changes in beta 0.2</h3>
<ul>
<li>Sharing via Twitter now works, even when logged out of Twitter.com.</li>
<li>Window is now resizable.</li>
</ul>
<p>We still need to fix the Firefox 3 RC1 issue <a href="http://developers.viddler.com/2008/05/28/viddlerpop-beta01/#comment-110">that Evan Sims pointed out</a>, as well as figure out how to make the bookmarklet work on pages where a Viddler video is embedded, and not just on Viddler.com.<br />
Thanks for all of your feedback so far!</p>
<h3>To upgrade or install</h3>
<p>To update your bookmarklet, just delete the old one, and use this new one: <a href="javascript:viddlerPause();w=window.open('http://lab.viddler.com/services/popoutplayer/?url='+encodeURIComponent(location.href),'ViddlerPopOut','width=420,height=500,toolbar=no,location=no,status=no,resizeable=yes,scrollbars=no');(function(){setTimeout('w.focus()',1000);})();">ViddlerPop!</a></p>
<p>As always, if you have any questions, just ask.</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2008/05/29/viddlerpop-beta02/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The ViddlerPop! bookmarklet &#8211; beta 0.1</title>
		<link>http://developers.viddler.com/2008/05/28/viddlerpop-beta01/</link>
		<comments>http://developers.viddler.com/2008/05/28/viddlerpop-beta01/#comments</comments>
		<pubDate>Wed, 28 May 2008 10:24:29 +0000</pubDate>
		<dc:creator>Colin Devroe</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[viddler]]></category>
		<category><![CDATA[viddlerpop]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://developers.viddler.com/?p=21</guid>
		<description><![CDATA[I like watching video in Viddler&#8217;s player.  All of my favorite podcasts are now using Viddler including WineLibrary TV, DiggNation, Two Guys on Beer, just to name a few.  But sometimes I don&#8217;t like keeping a browser tab open to watch these longer videos while I&#8217;m doing other things like surfing the Web, writing code, [...]]]></description>
			<content:encoded><![CDATA[<p>I like watching video in Viddler&#8217;s player.  All of my favorite podcasts are now using Viddler including <a href="http://viddler.com/winelibrarytv/">WineLibrary TV</a>, <a href="http://viddler.com/diggnation/">DiggNation</a>, <a href="http://viddler.com/tgob/">Two Guys on Beer</a>, just to name a few.  But sometimes I don&#8217;t like keeping a browser tab open to watch these longer videos while I&#8217;m doing other things like surfing the Web, writing code, or replying to the endless amounts of email I seem to get.</p>
<p>This is where ViddlerPop!, a new bookmarklet we&#8217;re playing with, comes in and saves the day.  Now instead of keeping a browser tab open dedicated to a Viddler video, I can watch this video in its own window.</p>
<p>Here is <a href="http://www.viddler.com/explore/cdevroe/videos/441/">a quick video demonstration</a> of how this first version works.</p>
<p><div id="viddlervideo-49566-15eb971d" class="viddlervideo"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="437" height="292" id="viddler_15eb971d"><param name="movie" value="http://www.viddler.com/player/15eb971d/" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><embed src="http://www.viddler.com/player/15eb971d/" width="437" height="292" type="application/x-shockwave-flash" allowScriptAccess="always" allowFullScreen="true" name="viddler_15eb971d" ></embed></object></div></p>
<p>Please leave us some feedback to let us know what you think of the bookmarklet, how you&#8217;d like it to improve, and if you find any bugs.  Thanks in advance!</p>
<h3>Installation</h3>
<p>To install <a href="javascript:viddlerPause();w=window.open('http://lab.viddler.com/services/popoutplayer/?url='+encodeURIComponent(location.href),'ViddlerPopOut','width=420,height=500,toolbar=no,location=no,status=no,resizeable=yes,scrollbars=no');(function(){setTimeout('w.focus()',1000);})();">ViddlerPop!</a> just drag the ViddlerPop! link to your browser&#8217;s bookmarks bar &#8211; or, right-click and &#8220;Add to bookmarks&#8221;. I believe in Firefox it is right-click and &#8220;Bookmark this Link&#8221;.</p>
<p>Questions?  Fire away!</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2008/05/28/viddlerpop-beta01/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Where did the lab go?</title>
		<link>http://developers.viddler.com/2008/05/16/where-did-the-lab-go/</link>
		<comments>http://developers.viddler.com/2008/05/16/where-did-the-lab-go/#comments</comments>
		<pubDate>Fri, 16 May 2008 13:29:36 +0000</pubDate>
		<dc:creator>Colin Devroe</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[updates]]></category>
		<category><![CDATA[viddler]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://developers.viddler.com/?p=20</guid>
		<description><![CDATA[In an effort to make developing on Viddler&#8217;s platform as easy as possible, we&#8217;ve moved the lab from lab.viddler.com to developers.viddler.com.  Everything should be forwarded now and we&#8217;ll be now setting up shop here.  The wiki is still available, but we&#8217;re going to be adding a whole new interface to our Developers area over the [...]]]></description>
			<content:encoded><![CDATA[<p>In an effort to make developing on Viddler&#8217;s platform as easy as possible, we&#8217;ve moved the lab from lab.viddler.com to developers.viddler.com.  Everything should be forwarded now and we&#8217;ll be now setting up shop here.  <a href="http://wiki.developers.viddler.com/">The wiki</a> is still available, but we&#8217;re going to be adding a whole new interface to <a href="http://developers.viddler.com/">our Developers area</a> over the next few weeks.</p>
<p>Please stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2008/05/16/where-did-the-lab-go/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting started with phpViddler Part 2: User authentication and sessions</title>
		<link>http://developers.viddler.com/2008/04/20/getting-started-with-phpviddler-part-2-user-authentication-and-sessions/</link>
		<comments>http://developers.viddler.com/2008/04/20/getting-started-with-phpviddler-part-2-user-authentication-and-sessions/#comments</comments>
		<pubDate>Sun, 20 Apr 2008 22:49:38 +0000</pubDate>
		<dc:creator>Colin Devroe</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[phpViddler]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[viddler]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://lab.viddler.com/?p=16</guid>
		<description><![CDATA[If you haven&#8217;t already, please be sure to read part one that Kyle put together, which covers the simple task of initiating the phpViddler class and using it to list videos.  Some of the code found herein may not make sense if you haven&#8217;t read part one.
I think you&#8217;ll find, through these tutorials, that [...]]]></description>
			<content:encoded><![CDATA[<p>If you haven&#8217;t already, please be sure to read part one that Kyle put together, which covers the simple task of <a href="http://lab.viddler.com/2008/04/20/phpviddler-part-1-listing-video/">initiating the phpViddler class and using it to list videos</a>.  Some of the code found herein may not make sense if you haven&#8217;t read part one.</p>
<p>I think you&#8217;ll find, through these tutorials, that using phpViddler makes it dead simple to use Viddler&#8217;s APIs.  Please leave feedback if you have any specific areas you&#8217;d like us to cover.</p>
<h3>Authenticating a user</h3>
<p>To authenticate a user you will need both the username and password of the user.  For this example, we&#8217;ll say the username is my username, <a href="http://www.viddler.com/explore/cdevroe/">cdevroe</a>, and the password will be a fake password of &#8216;password&#8217;.</p>
<p><span id="more-16"></span></p>
<p>There are a few important points to remember when authenticating a user using Viddler&#8217;s API, whether you use phpViddler or not.  Each time you authenticate a user you are giving a sessionID representing a &#8220;session&#8221; for <em>that username and password</em>.  If you are looking to log in a different user, you will need to re-authenticate the credentials to get another sessionID.</p>
<p>As we move forward with this series, you will learn more about where you use a sessionID to do things like changing meta data, uploading video, etcetera.</p>
<p>To start a new session, this is the code you will need to use once you have the username and password for the user.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// Authenticate the user, return array of response</span>
<span style="color: #000088;">$sessionResponse</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$viddler</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user_authenticate</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cdevroe'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>By default, <a href="http://wiki.developers.viddler.com/index.php/Phpviddler">phpViddler</a> will return a multi-dimensional array of <a href="http://wiki.developers.viddler.com/index.php/Viddler.users.auth">the Viddler.users.auth</a> API method.</p>
<p><strong>Check for errors</strong> before you do anything.  Typical authentication errors are that the username does not exist (error code 101), or the password provided is incorrect (error code 103).</p>
<p>Once you&#8217;ve determined there are no errors, you can now put the sessionID into a variable for use later.  In our next parts, we&#8217;ll be using the sessionID in a number of ways.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// Store sessionID in variable.</span>
<span style="color: #000088;">$sessionID</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$sessionResponse</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'auth'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sessionid'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Notes about sessions</h3>
<p>SessionIDs expire after 15 minutes of inactivity.  You should build your application with this in mind.  For example, if you build an uploading tool, and the upload of a video file takes longer than 15 minutes, the session you are using to upload a video with will expire before your upload is finished.  Don&#8217;t panic!  All you need to do is ask for a new one and you&#8217;re all set.</p>
<p>(Super side note: If you come to a point in your code where you need a sessionID, you can quickly run any method that requires a sessionID to see if the session is still valid, if it isn&#8217;t, get a new one, and continue your code.)</p>
<p>In our next part, we&#8217;ll be covering the use of our Record with Webcam API and uploading video files.</p>
<p>If you have any questions about authenticating users, or sessions in general, feel free to ask.</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2008/04/20/getting-started-with-phpviddler-part-2-user-authentication-and-sessions/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Getting Started With phpViddler Part 1: Listing Videos</title>
		<link>http://developers.viddler.com/2008/04/20/phpviddler-part-1-listing-video/</link>
		<comments>http://developers.viddler.com/2008/04/20/phpviddler-part-1-listing-video/#comments</comments>
		<pubDate>Sun, 20 Apr 2008 17:35:48 +0000</pubDate>
		<dc:creator>Kyle Slattery</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[phpViddler]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[viddler]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://lab.viddler.com/?p=14</guid>
		<description><![CDATA[Over the next couple weeks, Colin and I are going to be guiding you through how to use Viddler's API with phpViddler, the PHP wrapper for our API functions.  We'll be covering everything from embedding videos to registering new users, so keep checking back!

Today, I'll be covering how to list videos using the Viddler API and phpViddler using the functions <code>videos_listbyuser</code>, <code>videos_listbytag</code>, and <code>videos_listfeatured</code>.
]]></description>
			<content:encoded><![CDATA[<p>Over the next couple weeks, Colin and I are going to be guiding you through how to use Viddler&#8217;s API with phpViddler, the PHP wrapper for our API functions.  We&#8217;ll be covering everything from embedding videos to registering new users, so keep checking back!</p>
<p>Today, I&#8217;ll be covering how to list videos using the Viddler API and phpViddler using the functions <span class="code">videos_listbyuser</span>, <span class="code">videos_listbytag</span>, and <span class="code">videos_listfeatured</span>.<br />
<span id="more-14"></span></p>
<h3>Getting Set up</h3>
<p>To start using the Viddler API, you&#8217;ll need to get an API key, which you can get by filling out <a href="http://lab.viddler.com/getting-started/request-key/">this form</a>.  Once you&#8217;ve received your API key, go ahead and <a href="http://wiki.developers.viddler.com/index.php/Phpviddler">download phpViddler from our wiki</a>.  Now onto the actual code.  To get phpViddler going, you&#8217;re going to need to add the following to your script:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
  <span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'phpviddler.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000088;">$viddler</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Phpviddler<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$viddler</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">apiKey</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'YOUR API KEY'</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>So what happened here?  We included the &#8216;phpviddler.php&#8217; file, which houses the Phpviddler class.  Next, we created a new instance of the <code>Phpviddler</code> class called <code>$viddler</code>, and then finally we set the API key for phpViddler to use.</p>
<h3>Getting A User&#8217;s Videos</h3>
<p>One of the first things you&#8217;ll likely want to do is get videos by a specific user.  To accomplish this, we&#8217;ll be using the <code>videos_listbyuser()</code> function, which calls the <a href="http://wiki.developers.viddler.com/index.php/Viddler.videos.getByUser">viddler.videos.getByUser API method</a>.  We&#8217;ll then want to display each video using <code>video_getEmbed()</code>.  Here&#8217;s the code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$videos</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$viddler</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">videos_listbyuser</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'username'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$videos</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'video_list'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'video'</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$video</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$viddler</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getEmbed</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$video</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Replace &#8220;username&#8221; with the username you&#8217;re looking up, the above code will retrieve and display all of their videos.  First, let&#8217;s go over what each line does.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$videos</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$viddler</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>videos_listbyuser<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#x27;username&amp;#x27;);</span></pre></div></div>

<p>Here we&#8217;re just calling the <code>videos_listbyuser()</code> function and passing &#8220;username&#8221; as an argument.  If you look at the code for <code>videos_listbyuser()</code>, you&#8217;ll notice it actually takes 4 arguments: $user, $page, $per_page, and $sessionid.  We&#8217;ll ignore $sessionid for now, since we&#8217;ll be covering sessions in a later post.  $page and $per_page are used for limiting your results.  So, if you want to page through results and have 5 per page, you&#8217;d use the following call:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$videos</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$viddler</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">videos_listbyuser</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'username'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Just change $page to go to the next set of videos.  Now, onto handling what Phpviddler returns:</p>
<p>Whenever you make a call using phpViddler, you&#8217;ll get an array returned.  For instance, the above call, if you put in &#8220;winelibrarytv&#8221; for a user, you&#8217;ll get something like the following:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">Array</span>
<span style="color: #009900;">&#40;</span>
    <span style="color: #009900;">&#91;</span>video_list attr<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">Array</span>
        <span style="color: #009900;">&#40;</span>
            <span style="color: #009900;">&#91;</span>total<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">456</span>
        <span style="color: #009900;">&#41;</span>
&nbsp;
    <span style="color: #009900;">&#91;</span>video_list<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">Array</span>
        <span style="color: #009900;">&#40;</span>
            <span style="color: #009900;">&#91;</span>video<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">Array</span>
                <span style="color: #009900;">&#40;</span>
                    <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">Array</span>
                        <span style="color: #009900;">&#40;</span>
                            <span style="color: #009900;">&#91;</span>author<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> winelibrarytv
                            <span style="color: #009900;">&#91;</span>id<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> c866e246
                            <span style="color: #009900;">&#91;</span>title<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> episode445
                            <span style="color: #009900;">&#91;</span>length_seconds<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">860</span>
                            <span style="color: #009900;">&#91;</span>description<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> 
                            <span style="color: #009900;">&#91;</span>view_count<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1452</span>
                            <span style="color: #009900;">&#91;</span>upload_time<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1208384555000</span>
                            <span style="color: #009900;">&#91;</span>comment_count<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">0</span>
                            <span style="color: #009900;">&#91;</span>url<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//www.viddler.com/explore/winelibrarytv/videos/522/</span>
                            <span style="color: #009900;">&#91;</span>thumbnail_url<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//cdn-ll-46.viddler.com/e2/thumbnail_2_c866e246.jpg</span>
                        <span style="color: #009900;">&#41;</span>
&nbsp;
                    <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">Array</span>
                        <span style="color: #009900;">&#40;</span>
                            <span style="color: #009900;">&#91;</span>author<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> winelibrarytv
                            <span style="color: #009900;">&#91;</span>id<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> add5b980
                            <span style="color: #009900;">&#91;</span>title<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> episode444
                            <span style="color: #009900;">&#91;</span>length_seconds<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1090</span>
                            <span style="color: #009900;">&#91;</span>description<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> 
                            <span style="color: #009900;">&#91;</span>view_count<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">17216</span>
                            <span style="color: #009900;">&#91;</span>upload_time<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1208288599000</span>
                            <span style="color: #009900;">&#91;</span>comment_count<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">0</span>
                            <span style="color: #009900;">&#91;</span>url<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//www.viddler.com/explore/winelibrarytv/videos/520/</span>
                            <span style="color: #009900;">&#91;</span>thumbnail_url<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//cdn-ll-80.viddler.com/e2/thumbnail_2_add5b980.jpg</span>
                        <span style="color: #009900;">&#41;</span>
&nbsp;
                <span style="color: #009900;">&#41;</span>
&nbsp;
        <span style="color: #009900;">&#41;</span>
&nbsp;
<span style="color: #009900;">&#41;</span></pre></div></div>

<p>So, to iterate through the videos, you just need to use a foreach loop with the $videos['video_list']['video'] array:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$videos</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'video_list'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'video'</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$video</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$viddler</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getEmbed</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$video</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Passing the video id to $viddler-&gt;getEmbed() returns the proper embed code for the video.</p>
<h3>Other Video List Functions</h3>
<p>There are a couple other functions in phpViddler which behave similar to <code>videos_listbyuser()</code>: <code>videos_listbytag()</code> and <code>videos_listfeatured()</code>.</p>
<h4>videos_listbytag($tag, $page, $per_page)</h4>
<p>This function utilizes the <a href="http://wiki.developers.viddler.com/index.php/Viddler.videos.getByTag">Viddler.videos.getByTag API call</a> and can take 3 arguments, $tag, $page, and $per_page.  $tag refers to the tag you&#8217;re searching by, and $page and $per_page behave the same as before.  Here&#8217;s how you would use it to get all videos tagged with &#8220;metoday&#8221;:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$videos</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$viddler</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">videos_listbytag</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'metoday'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  
&nbsp;
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$videos</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'video_list'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'video'</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$video</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$viddler</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getEmbed</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$video</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<h4>videos_listfeatured()</h4>
<p>Using this function enables you to get all the videos featured on the <a href="http://blog.viddler.com">main Viddler Blog</a> and uses the <a href="http://wiki.developers.viddler.com/index.php/Viddler.videos.getFeatured">Viddler.videos.getFeatured API call</a>.  It doesn&#8217;t require any arguments, so you would just use it like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$videos</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$viddler</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">videos_listfeatured</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$videos</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'video_list'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'video'</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$video</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$viddler</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getEmbed</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$video</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<h3>More to come</h3>
<p>And, with that, we&#8217;ve finished our look at how to list videos with phpViddler.  Over the next couple of weeks, we&#8217;ll be posting more tutorials, so make sure to <a href="http://lab.viddler.com/feed/">subscribe to our RSS feed</a> and keep checking back!  Also, if you ever have any questions, you can either leave a comment on the blog, or start a new thread in the <a href="http://www.viddler.com/groups/developers/">Developers group</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2008/04/20/phpviddler-part-1-listing-video/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>A Viddler mambot for Joomla!</title>
		<link>http://developers.viddler.com/2008/04/16/viddler-mambot/</link>
		<comments>http://developers.viddler.com/2008/04/16/viddler-mambot/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 08:30:31 +0000</pubDate>
		<dc:creator>Colin Devroe</dc:creator>
				<category><![CDATA[3rd-party projects]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[mambot]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[viddler]]></category>

		<guid isPermaLink="false">http://lab.viddler.com/?p=13</guid>
		<description><![CDATA[A mambot is &#8220;a small, task-oriented function for Joomla! software&#8221;.  Viddler Antonio Edward (friend: labanex) has released a Viddler mambot that makes it easy to embed Viddler videos, using both the normal and simple player, on your Joomla! powered Web sites.
As it stands you have to do some digging into the HTML embed code to [...]]]></description>
			<content:encoded><![CDATA[<p>A mambot is &#8220;a small, task-oriented function for Joomla! software&#8221;.  Viddler Antonio Edward (friend: <a href="http://www.viddler.com/explore/labanex/">labanex</a>) has released <a href="http://wiki.developers.viddler.com/index.php/Joomla%21">a Viddler mambot</a> that makes it easy to embed Viddler videos, using both the normal and simple player, on your <a href="http://www.joomla.org/">Joomla!</a> powered Web sites.</p>
<p>As it stands you have to do some digging into the HTML embed code to get the values you need to make this plugin work, but perhaps someone with some Joomla! experience can help Antonio out by using <a href="http://wiki.developers.viddler.com/index.php/OEMBED">oEmbed</a> to make this process even easier?</p>
<p>It is a great first step for Joomla! users.  Thanks Antonio!</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2008/04/16/viddler-mambot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPViddler: A Viddler Wordpress theme</title>
		<link>http://developers.viddler.com/2008/04/15/wpviddler-theme/</link>
		<comments>http://developers.viddler.com/2008/04/15/wpviddler-theme/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 09:02:09 +0000</pubDate>
		<dc:creator>Colin Devroe</dc:creator>
				<category><![CDATA[3rd-party projects]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[viddler]]></category>
		<category><![CDATA[viddlerrss]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://lab.viddler.com/?p=11</guid>
		<description><![CDATA[This is pretty neat.  Viddler templamatic has put together a Wordpress theme for Viddlers, on his site where he sells themes, utilizing our Wordpress plugin and ViddlerRSS (a quick and dirty plugin that aggregates any Viddler RSS feed into a Wordpress sidebar).

WPViddler was released via our Forums a few days ago and is already getting some [...]]]></description>
			<content:encoded><![CDATA[<p>This is pretty neat.  Viddler <a href="http://www.viddler.com/explore/templamatic/">templamatic</a> has put together <a href="http://www.templamatic.com/template.asp?TemplateID=55">a Wordpress theme for Viddlers</a>, on <a href="http://templamatic.com/">his site where he sells themes</a>, utilizing <a href="http://wiki.developers.viddler.com/index.php/WPViddlerVideoComments">our Wordpress plugin</a> and <a href="http://blog.viddler.com/cdevroe/viddlerrss/">ViddlerRSS</a> (a quick and dirty plugin that aggregates any Viddler RSS feed into a Wordpress sidebar).</p>
<p style="text-align: center;"><img src="http://www.templamatic.com/_Documents/Images/Template/MediumImage55.jpg" alt="" width="540" /></p>
<p><a href="http://www.templamatic.com/template.asp?templateid=55">WPViddler</a> was <a href="http://www.viddler.com/forums/general/868/">released via our Forums</a> a few days ago and is already getting some positive feedback.  The theme is free for all registered users to <a href="http://www.templamatic.com/index.asp">Templamatic</a>.</p>
<p>I&#8217;m hoping to see more of this type of development as we&#8217;d love to make it quick and easy for bloggers to get started using their Viddler accounts on their sites.</p>
<p>Update April 16, 2008:  There seemed to be a Safari bug in the code for this template.  <a href="http://www.viddler.com/forums/general/868/">An update has been issued</a> as well as instructions for updating your theme if you downloaded and installed it already.</p>
]]></content:encoded>
			<wfw:commentRss>http://developers.viddler.com/2008/04/15/wpviddler-theme/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
