package Plagger::Plugin::Publish::JSON;
use strict;
use base qw( Plagger::Plugin );
use File::Spec;
use JSON::Syck;
use Plagger::Walker;
use Plagger::Util;
sub init {
my $self = shift;
$self
| '%i.json');
my $path = File::Spec->catfile($self->conf->{dir}, $file);
$context->log(info => "writing output to $path");
local $JSON::Syck::ImplicitUnicode = 1;
my $body = JSON::Syc
conf->{varname}) {
$body = "var $var = $body;";
} elsif (my $jsonp = $self->conf->{jsonp}) {
$body = "$jsonp($body)";
}
$context->log(info => "Serializing " . $args->{feed
e Plagger::Plugin::Subscription::LivedoorReader;
use strict;
use base qw( Plagger::Plugin );
use JSON::Syck;
use URI;
use Plagger::Mechanize;
use Plagger::Util;
sub plugin_id {
my $self = shift;
return JSON::Syck::Load($self->{mech}->content);
}
return;
}
1;
__END__
=head1 NAME
Plagger::Plugin::Subscription::LivedoorReader - Synchronize livedoor Reader with JSON API
=head1
=head1 DESCRIPTION
This plugin allows you to synchronize your subscription using Livedoor
Reader JSON API.
=head1 CONFIGURATION
=over 4
=item username, password
Your username & password to use wi