get(3600); $buf=str_replace('{username}',$data['username'],$buf); $buf=str_replace('{avatar}',$data['avatar'],$buf); $buf=str_replace('{lastlat}',$data['last']['lat'],$buf); $buf=str_replace('{lastlon}',$data['last']['lon'],$buf); $buf=str_replace('{lastutc}',date('d F Y, H:i:s',$data['last']['utc']),$buf); $buf=str_replace('{plot}',json_encode($data['plot'],true),$buf); return ob_gzhandler($buf,$mode); } ?> Location Of API Usage Demo