Exemplo n.º 1
0
<?php

require_once '../src/coreylib.php';
clAPI::configure('debug', true);
$api = new clAPI('http://feeds.feedburner.com/typepad/sethsmainblog');
$api->curlopt(CURLOPT_USERAGENT, "feedburnerclient");
if ($api->parse()) {
    ?>
	<?php 
    $api->info();
    ?>
	<h4><a href="<?php 
    echo $api->get('link[0]@href');
    ?>
"><?php 
    echo $api->get('title');
    ?>
</a></h4>
	<ul>
		<?php 
    foreach ($api->get('entry', 10) as $entry) {
        ?>
			<li><a href="<?php 
        echo $entry->get('link[0]@href');
        ?>
"><?php 
        echo $entry->get('title');
        ?>
</a></li>
		<?php 
    }