Net::PubSubHubbub::Publisher - client library to ping a PubSubHubbub hub
my $pub = Net::PubSubHubbub::Publisher->new(hub => $hub);
$pub->publish_update($atom_topic_url) or
die "Ping failed: " . $pub->last_response->status_line;
- "new"(hub => $hub[, ua => $ua])
- Takes a required hub URL, and an optional LWP::UserAgent instance.
- "publish_update"($topic_url)
- "publish_update"(@topic_urls)
- Sends a ping that the provided Topic URL(s) has/have been updated.
Returns true on success. If false, see "last_response" to figure
out why it failed.
- "last_response"()
- Returns the last HTTP::Response. Use this when "publish_update"
fails to discover why it failed.
This module is Copyright (c) 2009 Brad Fitzpatrick. All rights reserved.
You may distribute under the terms of either the GNU General Public License or
the Artistic License, as specified in the Perl README file.
This is free software. IT COMES WITHOUT WARRANTY OF ANY KIND.
Brad Fitzpatrick <brad@danga.com>
<http://code.google.com/p/pubsubhubbub/> -- PubSubHubbub home