WebService::FC2::SpamAPI - FC2 blog spam API client
Version 0.02
Clinet for FC2 spam API.
http://seo.fc2.com/spam/
use WebService::FC2::SpamAPI; my $api = WebService::FC2::SpamAPI->new(); $res = $api->check_url('http://spam.example.com'); if ( $res->is_spam ) { .... @res = $api->get_url_list(); @res = $api->get_domain_list({ dm => 'foo.example.com' });
Constructor.
my $api = WebService::FC2::SpamAPI->new(); # use Cache ( see URI::Fetch ) my $api = WebService::FC2::SpamAPI->new({ cache => $cache_object });
Check URL for FC2 spam list. Returns WebService::FC2::SpamAPI::Response object.
# simple check $res = $api->check_url('http://xxx.example.com'); if ( $res->is_spam ) { .... # returns detailed data # see also http://seo.fc2.com/spam/spamapi.php?m=h $res = $api->check_url({ url => 'http://xxx.exampl.com', usid => 0000, data => 1, }); $res->is_spam; $res->usid; # fc2 userid $res->name; # site name $res->comment; # comment # see WebService::FC2::SpamAPI::Response
Get registered spam URL list. Returns WebService::FC2::SpamAPI::Response list.
@res = $api->get_url_list(); @res = $api->get_url_list({ usid => 0000 }); # grep by userid
Get registered spam URL list in domain. Returns WebService::FC2::SpamAPI::Response list.
@res = $api->get_domain_list({ dm => 'example.com' }); # dm is required. @res = $api->get_domain_list({ dm => 'example.com', usid => 0000, # grep by userid });
URI::Fetch, WebService::FC2::SpamAPI::Response, http://seo.fc2.com/spam/
FUJIWARA Shunichiro, <fujiwara at topicmaker.com>
<fujiwara at topicmaker.com>
Copyright 2007 FUJIWARA Shunichiro, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WebService::FC2::SpamAPI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::FC2::SpamAPI
CPAN shell
perl -MCPAN -e shell install WebService::FC2::SpamAPI
For more information on module installation, please visit the detailed CPAN module installation guide.