I’ve searched the forums, Google, etc. and I’m putting something together with the Envato API but the documentation quite frankly sucks.
What I’m trying to do is put mimic the author statement like so:
22 May 10 sale $ 0.00 sold Your Item Here for 1.00 w/ rate of 00.0%
Here’s what I have so far:
<?php // List Recent Sales
$count = 1;
$salesArray = $json_data['recent-sales'];
foreach($salesArray as $value)
{
if($count <= 10)
{
echo "<li class='line?><span class="sold">".$json_data['vitals']['username']." Sold ".$value['item']." at ".$value['rate']."%</span><span class="price">$".$value['amount']."</span>";
$count = $count + 1;
}
else
{
break;
}
}
?>
but that just puts out:
Author Username Your Item Here at 0.00% $1.00
Can anyone tell me how to get the values from the API to achieve the values I’m looking for?



