DailyBooth API: Most Recent Snap

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 orRyan 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 ‘