Skip to content

Instantly share code, notes, and snippets.

@nathancahill
Created October 23, 2012 16:20
Show Gist options
  • Save nathancahill/3939833 to your computer and use it in GitHub Desktop.
Save nathancahill/3939833 to your computer and use it in GitHub Desktop.
<?php
$json = file_get_contents('http://stage.prope.rs/api/<account_name>/3');
$props = json_decode($json, TRUE);
foreach ($props as $prop) {
$template = "<li>
<div class='quote'>%s</div>
<div class='speech_tag'></div>
<div class='image'><img width='42' height='42' src='%s'></div>
<div class='author'>
<div class='name'>%s</div>
<div class='title'>%s</div>
</div>
</li>";
$render = sprintf($template, $prop['text'], $prop['img'], $prop['name'], $prop['description']);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment