Permalink
Browse files

Removed legacy list support from v1.1 code (not supported by Twitter)

  • Loading branch information...
1 parent 2c4991d commit 7bdfb8a163d5bcf90b5c0b3c66644d5324c286b5 @semifor committed Mar 5, 2013
Showing with 17 additions and 222 deletions.
  1. +17 −222 lib/Net/Twitter/Lite/API/V1_1.pm
@@ -2,215 +2,13 @@ package Net::Twitter::Lite::API::V1_1;
use warnings;
use strict;
+=head1 NAME
+Net::Twitter::Lite::API::V1_1 - Twitter API v1.1 method definitions
+
+=cut
sub api_def () { +[
- [ Lists => [
- [ 'legacy_add_list_member', {
- aliases => [ qw// ],
- path => ':user/:list_id/members',
- method => 'POST',
- params => [ qw/user list_id id/ ],
- required => [ qw/user list_id id/ ],
- add_source => 0,
- deprecated => 0,
- authenticate => 1,
- booleans => [ qw// ],
- base_url_method => 'lists_api_url',
- } ],
- [ 'legacy_create_list', {
- aliases => [ qw// ],
- path => ':user/lists',
- method => 'POST',
- params => [ qw/user name mode description/ ],
- required => [ qw/user name/ ],
- add_source => 0,
- deprecated => 0,
- authenticate => 1,
- booleans => [ qw// ],
- base_url_method => 'lists_api_url',
- } ],
- [ 'legacy_delete_list', {
- aliases => [ qw// ],
- path => ':user/lists/:list_id',
- method => 'DELETE',
- params => [ qw/user list_id/ ],
- required => [ qw/user list_id/ ],
- add_source => 0,
- deprecated => 0,
- authenticate => 1,
- booleans => [ qw// ],
- base_url_method => 'lists_api_url',
- } ],
- [ 'legacy_delete_list_member', {
- aliases => [ qw/legacy_remove_list_member/ ],
- path => ':user/:list_id/members',
- method => 'DELETE',
- params => [ qw/user list_id id/ ],
- required => [ qw/user list_id id/ ],
- add_source => 0,
- deprecated => 0,
- authenticate => 1,
- booleans => [ qw// ],
- base_url_method => 'lists_api_url',
- } ],
- [ 'legacy_get_list', {
- aliases => [ qw// ],
- path => ':user/lists/:list_id',
- method => 'GET',
- params => [ qw/user list_id/ ],
- required => [ qw/user list_id/ ],
- add_source => 0,
- deprecated => 0,
- authenticate => 1,
- booleans => [ qw// ],
- base_url_method => 'lists_api_url',
- } ],
- [ 'legacy_get_lists', {
- aliases => [ qw/legacy_list_lists/ ],
- path => ':user/lists',
- method => 'GET',
- params => [ qw/user cursor/ ],
- required => [ qw/user/ ],
- add_source => 0,
- deprecated => 0,
- authenticate => 1,
- booleans => [ qw// ],
- base_url_method => 'lists_api_url',
- } ],
- [ 'legacy_is_list_member', {
- aliases => [ qw// ],
- path => ':user/:list_id/members/:id',
- method => 'GET',
- params => [ qw/user list_id id/ ],
- required => [ qw/user list_id id/ ],
- add_source => 0,
- deprecated => 0,
- authenticate => 1,
- booleans => [ qw// ],
- base_url_method => 'lists_api_url',
- } ],
- [ 'legacy_is_list_subscriber', {
- aliases => [ qw/legacy_is_subscribed_list/ ],
- path => ':user/:list_id/subscribers/:id',
- method => 'GET',
- params => [ qw/user list_id id/ ],
- required => [ qw/user list_id id/ ],
- add_source => 0,
- deprecated => 0,
- authenticate => 1,
- booleans => [ qw// ],
- base_url_method => 'lists_api_url',
- } ],
- [ 'legacy_list_members', {
- aliases => [ qw// ],
- path => ':user/:list_id/members',
- method => 'GET',
- params => [ qw/user list_id id cursor/ ],
- required => [ qw/user list_id/ ],
- add_source => 0,
- deprecated => 0,
- authenticate => 1,
- booleans => [ qw// ],
- base_url_method => 'lists_api_url',
- } ],
- [ 'legacy_list_memberships', {
- aliases => [ qw// ],
- path => ':user/lists/memberships',
- method => 'GET',
- params => [ qw/user cursor/ ],
- required => [ qw/user/ ],
- add_source => 0,
- deprecated => 0,
- authenticate => 1,
- booleans => [ qw// ],
- base_url_method => 'lists_api_url',
- } ],
- [ 'legacy_list_statuses', {
- aliases => [ qw// ],
- path => ':user/lists/:list_id/statuses',
- method => 'GET',
- params => [ qw/user list_id since_id max_id per_page page/ ],
- required => [ qw/user list_id/ ],
- add_source => 0,
- deprecated => 0,
- authenticate => 1,
- booleans => [ qw// ],
- base_url_method => 'lists_api_url',
- } ],
- [ 'legacy_list_subscribers', {
- aliases => [ qw// ],
- path => ':user/:list_id/subscribers',
- method => 'GET',
- params => [ qw/user list_id id cursor/ ],
- required => [ qw/user list_id/ ],
- add_source => 0,
- deprecated => 0,
- authenticate => 1,
- booleans => [ qw// ],
- base_url_method => 'lists_api_url',
- } ],
- [ 'legacy_list_subscriptions', {
- aliases => [ qw// ],
- path => ':user/lists/subscriptions',
- method => 'GET',
- params => [ qw/user cursor/ ],
- required => [ qw/user/ ],
- add_source => 0,
- deprecated => 0,
- authenticate => 1,
- booleans => [ qw// ],
- base_url_method => 'lists_api_url',
- } ],
- [ 'legacy_members_create_all', {
- aliases => [ qw/legacy_add_list_members/ ],
- path => ':user/:list_id/members/create_all',
- method => 'POST',
- params => [ qw/user list_id screen_name user_id/ ],
- required => [ qw/user list_id/ ],
- add_source => 0,
- deprecated => 0,
- authenticate => 1,
- booleans => [ qw// ],
- base_url_method => 'lists_api_url',
- } ],
- [ 'legacy_subscribe_list', {
- aliases => [ qw// ],
- path => ':user/:list_id/subscribers',
- method => 'POST',
- params => [ qw/user list_id/ ],
- required => [ qw/user list_id/ ],
- add_source => 0,
- deprecated => 0,
- authenticate => 1,
- booleans => [ qw// ],
- base_url_method => 'lists_api_url',
- } ],
- [ 'legacy_unsubscribe_list', {
- aliases => [ qw// ],
- path => ':user/:list_id/subscribers',
- method => 'DELETE',
- params => [ qw/user list_id/ ],
- required => [ qw/user list_id/ ],
- add_source => 0,
- deprecated => 0,
- authenticate => 1,
- booleans => [ qw// ],
- base_url_method => 'lists_api_url',
- } ],
- [ 'legacy_update_list', {
- aliases => [ qw// ],
- path => ':user/lists/:list_id',
- method => 'POST',
- params => [ qw/user list_id name mode description/ ],
- required => [ qw/user list_id/ ],
- add_source => 0,
- deprecated => 0,
- authenticate => 1,
- booleans => [ qw// ],
- base_url_method => 'lists_api_url',
- } ],
- ] ],
[ REST => [
# Timelines
[ 'mentions', {
@@ -347,6 +145,19 @@ sub api_def () { +[
booleans => [ qw/hide_media hide_thread omit_script/ ],
base_url_method => 'apiurl',
} ],
+# Search
+ [ 'search', {
+ aliases => [ qw// ],
+ path => 'search/tweets',
+ method => 'GET',
+ params => [ qw/q geocode lang locale result_type count until since_id max_id include_entities callback/ ],
+ required => [ qw/q/ ],
+ add_source => 0,
+ deprecated => 0,
+ authenticate => 1,
+ booleans => [ qw/include_entities/ ],
+ base_url_method => 'apiurl',
+ } ],
# Direct Messages
[ 'direct_messages', {
@@ -1317,22 +1128,6 @@ sub api_def () { +[
base_url_method => 'apiurl',
} ],
] ],
-
-# Search
- [ Search => [
- [ 'search', {
- aliases => [ qw// ],
- path => 'search/tweets',
- method => 'GET',
- params => [ qw/q geocode lang locale result_type count until since_id max_id include_entities callback/ ],
- required => [ qw/q/ ],
- add_source => 0,
- deprecated => 0,
- authenticate => 1,
- booleans => [ qw/include_entities/ ],
- base_url_method => 'searchapiurl',
- } ],
- ] ],
]}
1;

0 comments on commit 7bdfb8a

Please sign in to comment.