Permalink
Browse files

Added API method members_destroy_all with alias remove_list_members

  • Loading branch information...
1 parent ba9facd commit 207f1aa43ddbca81c2dfd02e52705f7658b0960f @semifor committed Mar 29, 2012
Showing with 22 additions and 0 deletions.
  1. +1 −0 Changes
  2. +21 −0 lib/Net/Twitter/Role/API/REST.pm
View
@@ -1,3 +1,4 @@
+ - added API method members_destroy_all with alias remove_list_members
- added deprecation warning for 'trends'; calls trends_location(1), instead
3.18001 2011-09-29
@@ -1548,6 +1548,27 @@ a time with this method.
);
+twitter_api_method members_destroy_all => (
+ path => 'lists/members/destroy_all',
+ method => 'POST',
+ params => [qw/list_id slug user_id screen_name owner_screen_name owner_id/],
+ required => [],
+ returns => 'List',
+ aliases => [qw/remove_list_members/],
+ description => <<'EOT',
+Removes multiple members from a list, by specifying a reference to an array of
+member ids or screen names, or a string of comma separated user ids or screen
+names. The authenticated user must own the list to be able to remove members
+from it. Note that lists can't have more than 500 members, and you are limited
+to removing up to 100 members to a list at a time with this method.
+
+Please note that there can be issues with lists that rapidly remove and add
+memberships. Take care when using these methods such that you are not too
+rapidly switching between removals and adds on the same list.
+
+EOT
+);
+
twitter_api_method is_list_member => (
path => 'lists/members/show',
method => 'GET',

0 comments on commit 207f1aa

Please sign in to comment.