From df15ce796fd208c2030e1aa6630df472ddc18bf0 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Wed, 25 Nov 2009 13:31:44 +0100 Subject: add pod and backtweet API --- lib/Net/Backtweet.pm | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/Net/Backtype.pm | 52 ++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 lib/Net/Backtweet.pm (limited to 'lib') diff --git a/lib/Net/Backtweet.pm b/lib/Net/Backtweet.pm new file mode 100644 index 0000000..03abb0d --- /dev/null +++ b/lib/Net/Backtweet.pm @@ -0,0 +1,55 @@ +package Net::Backtweet; + +use Moose; +use MooseX::Net::API; +extends 'Net::Backtype'; + +has format => ( is => 'ro', isa => 'Str', default => 'json', ); +has '+api_base_url' => ( default => 'http://backtweets.com' ); +format_query 'format' => ( mode => 'append' ); + +net_api_method backtweet_search => ( + path => '/search', + method => 'GET', + params => [qw/q since key/], + required => [qw/q key/], +); + +1; +__END__ + +=head1 NAME + +Net::Backtweet - client for the backtweet API + +=head1 SYNOPSIS + + use Net::Backtweet; + my $client = Net::Backtweet->new(); + +=head1 DESCRIPTION + +Net::Backtype is a client for the backtweet API + +=head2 METHODS + +=over 4 + +=item B + +See L. + +=back + +=head1 AUTHOR + +franck cuny Efranck.cuny@rtgi.frE + +=head1 SEE ALSO + +=head1 LICENSE + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. + +=cut diff --git a/lib/Net/Backtype.pm b/lib/Net/Backtype.pm index a3591b3..58d9fa8 100644 --- a/lib/Net/Backtype.pm +++ b/lib/Net/Backtype.pm @@ -101,12 +101,62 @@ Net::Backtype - client for the backtype API =head1 SYNOPSIS use Net::Backtype; - my $client = Net::Backtype->new(format => 'json', api_key => 'foo'); + my $client = Net::Backtype->new(); =head1 DESCRIPTION Net::Backtype is a client for the backtype API +=head2 METHODS + +=over 4 + +=item B + +See L. + +=item B + +See L. + +=item B + +See L. + +=item B + +See L. + +=item B + +See L. + +=item B + +See L. + +=item B + +See L. + +=item B + +See L. + +=item B + +See L. + +=item B + +See L. + +=item B + +See L. + +=back + =head1 AUTHOR franck cuny Efranck.cuny@rtgi.frE -- cgit v1.2.3