Posts Tagged ‘viddler’

 

 

March 11th, 2010
C

PHP Viddler API Client – Forked

Okay that title sounds either a bit naughty or nasty, it’s neither. I forked the official PHP Viddler API wrapper and wrote a new one. Why? Well because when I worked there I wrote smaller client which worked out well for me so I’ve decided to release it.

If you strip out the comments from the new client, it’s less than 200 lines of code. Now I just focused on the core API, I didn’t add any of the add-on methods for embeds, oembed, etc. If you are looking for those I would suggest using the original Viddler client. I wanted to keep this lightweight, I may add it later on as an extension so if you want to use it you can, but for now, just keeping it simple.

So how did I strip so much out of the original? I used no 3rd party classes. I used only what is in PHP. I ditched the xmlparser.php file and went with SimpleXML. I also didn’t write a method for every for every possible API method. Actually I didn’t write one for any of them. I took advantage of PHP’s magic method __call(). Which is automatically called when the user calls an object method that doesn’t exist.

$viddler = new Viddler('API KEY');
$res = $viddler->user_auth(array(
  'user'      =>  'USERNAME'
  'password'  =>  'YOUR PASS'
));

CONTINUE READING | TWEET THIS | COMMENT (1)

February 27th, 2010
L

Departing from Viddler

After about 10 months at the internet start-up Viddler, I have decided to move on to something that better suits me. I am moving back into the media business with a company named Journal Register Company. I am very excited for this transition and to get back to something I never knew I enjoyed so much until I left it, the news.

Viddler is full of great people, smart people and they have developed a great product and I have no doubts they will be around for years. Personally, it just wasn’t fulfilling. I didn’t find myself growing like I would have liked to, really pushing the envelope of what I know I am capable of. Some of this is my fault, just lack of passion for this particular business; but all-in-all I am extremely happy that I took the chance to try something new and meet a lot of great people along the way. My last day at Viddler with be March 12th and I start JRC on the 15th.

This is actually quite comical because about 6 years ago I started at Tribune Company on March 15th as well. Must be something magical about this date. Maybe it’s destiny, uh, maybe not; just coincidence?

CONTINUE READING | TWEET THIS | COMMENT (6)