Skip to content

Commit

Permalink
Added new API method: report_spam
Browse files Browse the repository at this point in the history
  • Loading branch information
semifor committed Oct 14, 2009
1 parent ccb8753 commit e2be473
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
3.07003 2009-10-13
- Added new API method: report_spam

3.07002 2009-10-05
- Documented the cursor parameter for friends, followers, friends_ids, and
followers_ids.
Expand Down
13 changes: 12 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ NAME
Net::Twitter - A perl interface to the Twitter API

VERSION
This document describes Net::Twitter version 3.07002
This document describes Net::Twitter version 3.07003

SYNOPSIS
use Net::Twitter;
Expand Down Expand Up @@ -772,6 +772,17 @@ REST API Methods

Returns: RateLimitStatus

report_spam
report_spam(id)

Parameters: id, user_id, screen_name
Required: id

The user specified in the id is blocked by the authenticated user
and reported as a spammer.

Returns: User

retweet
retweet(id)

Expand Down
2 changes: 1 addition & 1 deletion lib/Net/Identica.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Net::Identica;
use Moose;

# use *all* digits for fBSD ports
our $VERSION = '3.07002';
our $VERSION = '3.07003';
$VERSION = eval $VERSION; # numify for warning-free dev releases

extends 'Net::Twitter::Core';
Expand Down
2 changes: 1 addition & 1 deletion lib/Net/Twitter.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ has '_trait_namespace' => (
);

# use *all* digits for fBSD ports
our $VERSION = '3.07002';
our $VERSION = '3.07003';

$VERSION = eval $VERSION; # numify for warning-free dev releases

Expand Down
2 changes: 1 addition & 1 deletion lib/Net/Twitter/Core.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use Data::Visitor::Callback;
use namespace::autoclean;

# use *all* digits for fBSD ports
our $VERSION = '3.07002';
our $VERSION = '3.07003';

$VERSION = eval $VERSION; # numify for warning-free dev releases

Expand Down
2 changes: 1 addition & 1 deletion lib/Net/Twitter/OAuth.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Net::Twitter::OAuth;
use Moose;

# use *all* digits for fBSD ports
our $VERSION = '3.07002';
our $VERSION = '3.07003';
$VERSION = eval $VERSION; # numify for warning-free dev releases

extends 'Net::Twitter::Core';
Expand Down
11 changes: 11 additions & 0 deletions lib/Net/Twitter/Role/API/REST.pm
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,17 @@ by the authenticating user.
returns => 'SavedSearch',
);

twitter_api_method report_spam => (
description => <<'',
The user specified in the id is blocked by the authenticated user and reported as a spammer.
path => 'report_spam',
method => 'POST',
params => [qw/id user_id screen_name/],
required => [qw/id/],
returns => 'User',
);

1;

__END__
Expand Down
2 changes: 1 addition & 1 deletion lib/Net/Twitter/Search.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Net::Twitter::Search;
use Moose;

# use *all* digits for fBSD ports
our $VERSION = '3.07002';
our $VERSION = '3.07003';
$VERSION = eval $VERSION; # numify for warning-free dev releases

extends 'Net::Twitter::Core';
Expand Down
1 change: 1 addition & 0 deletions t/99-pod_spelling.t
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ retweeted
retweeting
retweets
rpp
spammer
ssl
stringifies
timeline
Expand Down

0 comments on commit e2be473

Please sign in to comment.