Plack::App::PubSubHubbub::Subscriber::Client
my $client = Plack::App::PubSubHubbub::Subscriber::Client( config => $conf, ); my $result = $client->subscribe( $hub, $topic, $token ); ...
Take a Plack::App::PubSubHubbub::Subscriber::Client object as parmeter, ideally the same config used for the Plack App.
Can be used to set the user agent, by default return an LWP::UserAgent object.
Prepare and return the subscribe request (HTTP::Request object) Note that it does not run the request, this is useful if you want to run the request yourself, in an event loop client for example.
Build the request using 'subscribe_request' and run it. Return { success => 'verified' } if the subscription is active. Return { success => 'tobeverified' } in case of async verification. Return { error => $msg } in case of error.
Same as subscribe_request but for unsubscribe.
Same as subscribe but for unsubscribe.
To install Plack::App::PubSubHubbub::Subscriber, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::App::PubSubHubbub::Subscriber
CPAN shell
perl -MCPAN -e shell install Plack::App::PubSubHubbub::Subscriber
For more information on module installation, please visit the detailed CPAN module installation guide.