The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::PubSubHubbub::Publisher - client library to ping a PubSubHubbub hub

OVERVIEW

  my $pub = Net::PubSubHubbub::Publisher->new(hub => $hub);
  $pub->publish_update($atom_topic_url) or
      die "Ping failed: " . $pub->last_response->status_line;

CONSTRUCTOR

new(hub => $hub[, ua => $ua])

Takes a required hub URL, and an optional LWP::UserAgent instance.

METHODS

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.

COPYRIGHT & LICENSE

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.

WARRANTY

This is free software. IT COMES WITHOUT WARRANTY OF ANY KIND.

AUTHOR

Brad Fitzpatrick <brad@danga.com>

SEE ALSO

http://code.google.com/p/pubsubhubbub/ -- PubSubHubbub home