From d7c7e7fb2d14835f6024116cafa23051eba20ccf Mon Sep 17 00:00:00 2001 From: franck cuny Date: Mon, 7 Jun 2010 10:37:03 +0200 Subject: add urls; rename method, change url and args --- lib/Net/Backtweet.pm | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/Net/Backtweet.pm b/lib/Net/Backtweet.pm index 4db5e0c..b9e3c49 100644 --- a/lib/Net/Backtweet.pm +++ b/lib/Net/Backtweet.pm @@ -12,12 +12,12 @@ net_api_declare backtweet => ( format_mode => 'append', ); -net_api_method backtweet_search => ( +net_api_method tweets_by_url => ( description => 'Retrieve tweets that link to a given URL, whether the links are shortened or unshortened.', - path => '/search', + path => '/tweets/search/links', method => 'GET', - params => [qw/q since key end start itemsperpage/], + params => [qw/q key/], required => [qw/q key/], expected => [qw/200/], ); @@ -58,12 +58,24 @@ Net::Backtype is a client for the backtweet API. =over 4 -=item B +=item B + +Retrieve the number of tweets that link to a particular URL. + +See L. =item B +Retrieve the number of tweets that link to a particular URL. + +See L. + =item B +Retrieve filtered tweets that link to a given URL with both shortened and unshortened links. This returns a subset of Tweets by URL. + +See L. + =back See L for more information about the backtweets API. -- cgit v1.2.3