diff --git a/Changes b/Changes index 5108c88..64ee5e7 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,5 @@ + - added API method subscriptions; list_subscriptions is now + all_subscriptions with alias list_subscriptions - deprecated TwitterVision API support - added API method members_destroy_all with alias remove_list_members - added deprecation warning for 'trends'; calls trends_location(1), instead diff --git a/lib/Net/Twitter/Role/API/REST.pm b/lib/Net/Twitter/Role/API/REST.pm index 87c3e60..3a2eb79 100644 --- a/lib/Net/Twitter/Role/API/REST.pm +++ b/lib/Net/Twitter/Role/API/REST.pm @@ -1415,13 +1415,13 @@ response. This method is only available to users who have access to ### Lists ### -twitter_api_method list_subscriptions => ( +twitter_api_method all_subscriptions => ( path => 'lists/all', method => 'GET', - params => [qw/id user_id screen_name/], - required => [qw/id/], + params => [qw/user_id screen_name count cursor/], + required => [], returns => 'ArrayRef[List]', - aliases => [qw/all_lists/], + aliases => [qw/all_lists list_subscriptions/], description => <<'', Returns all lists the authenticating or specified user subscribes to, including their own. The user is specified using the user_id or screen_name parameters. @@ -1681,6 +1681,19 @@ authenticated user owns the specified list. ); +twitter_api_method subscriptions => ( + path => 'lists/subscriptions', + method => 'GET', + params => [qw/user_id screen_name count cursor/], + required => [], + returns => 'ArrayRef[List]', + aliases => [], + description => <<'', +Obtain a collection of the lists the specified user is subscribed to, 20 lists +per page by default. Does not include the user's own lists. + +); + ### Legal ### twitter_api_method get_privacy_policy => (