Search::Sitemap::Pinger::Live - Search::Sitemap::Pinger for Live


Search-Sitemap documentation Contained in the Search-Sitemap distribution.

Index


Code Index:

NAME

Top

Search::Sitemap::Pinger::Live - Search::Sitemap::Pinger for Live

SYNOPSIS

Top

See Search::Sitemap::Ping.

METHODS

Top

submit_url_for( $url )

Given a url for a sitemap file, returns the URL that you need to use in a GET request in order to submit the provided url to the Search Engine.

SEE ALSO

Top

Search::Sitemap::Ping

http://webmaster.live.com/

AUTHOR

Top

Jason Kohles, <email@jasonkohles.com>

http://www.jasonkohles.com/

COPYRIGHT AND LICENSE

Top


Search-Sitemap documentation Contained in the Search-Sitemap distribution.

package Search::Sitemap::Pinger::Live;
use strict; use warnings;
our $VERSION = '2.13';
our $AUTHORITY = 'cpan:JASONK';
use Moose;
extends 'Search::Sitemap::Pinger';
use namespace::clean -except => 'meta';

sub submit_url_for {
    my ( $self, $url ) = @_;
    my $submit = URI->new( 'http://webmaster.live.com/ping.aspx' );
    $submit->query_form( siteMap => $url );
    return $submit;
}

no Moose;
__PACKAGE__->meta->make_immutable;
1;
__END__