Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: fb14b64772
@julien51 julien51
30 lines (21 sloc) 0.6 kB
<?php
require_once('superfeedr.php');
function on_notification($event) {
print_r($event);
}
$sf = new Superfeedr('username@superfeedr.com', 'password');
$sf->on_notification('on_notification', null);
print "Subscribing to http://feeds.digg.com/digg/popular.rss: ";
print $sf->subscribe('http://feeds.digg.com/digg/popular.rss');
print "\n";
print "Listing feeds: ";
print_r($sf->listfeeds());
print "\n";
print "Unsubscribing: ";
print $sf->unsubscribe('http://feeds.digg.com/digg/popular.rss');
print "\n";
print "Listing feeds: ";
print_r($sf->listfeeds());
print "\n";
$sf->process();
?>
Jump to Line
Something went wrong with that request. Please try again.