Net::Trackback::Ping - an object representing a Trackback ping.
use Net::Trackback::Client; use Net::Trackback::Ping; my $ping = Net::Trackback::Ping->new(); $ping->title('Net::Trackback Test'); $ping->url('http://search.cpan.org/search?query=Trackback'); $ping->ping_url('http://www.movabletype.org/mt/trackback/62'); my $client = Net::Trackback::Client->new(); my $msg = $client->send_ping($ping); print $msg->to_xml;
Constuctor method. It will initialize the object if passed a hash reference. Recognized keys are url, ping_url, id, title, excerpt, and blogname. These keys correspond to the methods like named methods.
A method that extracts ping data from an HTTP request and returns a ping object. In the event a bad ping has been passed in the method will return undef. USe the errstr method to retrieve the error message. One required parameter, a reference to a CGI object or some other that has a param method that works just like it. See the list of recognized keys in the new method.
undef
errstr
param
Accessor to a resource URL. Passing in an optional string parameter sets the value. This value is required to make a ping.
Accessor to the URL to ping with the resource's Trackback information. Passing in an optional string parameter sets the value. This value is required to make a ping.
Accessor to the remote resource ID that is to be pinged. Passing in an optional string parameter sets the value.
Accessor to the title of resource that is to be pinged. Passing in an optional string parameter sets the value.
A brief plain text description of the resource at the other end of the url. Passing in an optional string parameter sets the value.
NOTE: While the Trackback specification doesn't specify a limit to the size of an excerpt, some implementations do. For instance as of Movable Type 3.14, Trackback excerpts cannot exceed 255 characters.
Accessor to the source of the ping. Passing in an optional string parameter sets the value.
Returns a hash of the object's current state.
Returns a URL encoded string of the object's current state.
This module is a subclass of Class::ErrorHandler and inherits two methods for passing error message back to a caller.
Sets the error message for either the class Class or the object $object to the message $message. Returns undef.
Accesses the last error message set in the class Class or the object $object, respectively, and returns that error message.
Please see the Net::Trackback manpage for author, copyright, and license information.
6 POD Errors
The following errors were encountered while parsing the POD:
=begin without a target?
'=item' outside of any '=over'
You forgot a '=back' before '=head2'
You forgot a '=back' before '=head1'
'=end' without a target?
To install Net::Trackback, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Trackback
CPAN shell
perl -MCPAN -e shell install Net::Trackback
For more information on module installation, please visit the detailed CPAN module installation guide.