./paulOr

Eat bandwidth for breakfast!

The DailyBooth API is a land yet to be chartered when it comes to developing on it. Its very much still in beta, and Jon or Ryan might even shout at me for starting to document into at this stage. But i'm willing to risk it!

Overall, DailyBooth API is pretty straight forward and really quite simple, which is great. Ill quickly show you how to grab your most recent snap via the API.

<?php

	## GET THE USERS USER ID VIA THERE USERNAME
	$userID = json_decode(file_get_contents('http://api.dailybooth.com/v1/user/id/paul.json'));

	## NOW COLLECT THE IMAGES FROM THERE FEED, VIA THERE USERID
	$feed = json_decode(file_get_contents('http://api.dailybooth.com/v1/user/pictures/'.$userID[0].'.json'));

	## PRINT OUT THE IMAGE
	echo '<img src="'.$feed[0]->urls->medium.'" />';
	

?>


More soon, If Jon & Ryan don't go wild at me!

Grammar Nazi

# Grammar Nazi · Wed 23rd Jun 2010

"NOW COLLECT THE IMAGES FROM THERE FEED, VIA THERE USERID"

Where feed? Where userid?

Paul Fraser

# Paul Fraser · Wed 23rd Jun 2010

Please accept my apologise Mr Nazi. I will try harder in the future :(

 or Connect with Facebook

To the top!