From ec6169292d2bff745ae467cd03c5f10a675ec7bd Mon Sep 17 00:00:00 2001 From: Erik Scheffers Date: Fri, 18 Feb 2011 17:09:19 +0800 Subject: [PATCH] Added a few missing endpoints, fixed a few wrong endpoints --- twython/twitter_endpoints.py | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/twython/twitter_endpoints.py b/twython/twitter_endpoints.py index c789446..6ad15bc 100644 --- a/twython/twitter_endpoints.py +++ b/twython/twitter_endpoints.py @@ -26,6 +26,11 @@ api_table = { 'method': 'GET', }, + 'endSession' : { + 'url': '/account/end_session.json', + 'method': 'POST', + }, + # Timeline methods 'getPublicTimeline': { 'url': '/statuses/public_timeline.json', @@ -256,7 +261,11 @@ api_table = { 'method': 'GET', }, 'getListMemberships': { - 'url': '/{{username}}/lists/followers.json', + 'url': '/{{username}}/lists/memberships.json', + 'method': 'GET', + }, + 'getListSubscriptions': { + 'url': '/{{username}}/lists/subscriptions.json', 'method': 'GET', }, 'deleteList': { @@ -283,12 +292,16 @@ api_table = { 'url': '/{{username}}/{{list_id}}/members.json', 'method': 'DELETE', }, + 'getListSubscribers': { + 'url': '/{{username}}/{{list_id}}/subscribers.json', + 'method': 'GET', + }, 'subscribeToList': { - 'url': '/{{username}}/{{list_id}}/following.json', + 'url': '/{{username}}/{{list_id}}/subscribers.json', 'method': 'POST', }, 'unsubscribeFromList': { - 'url': '/{{username}}/{{list_id}}/following.json', + 'url': '/{{username}}/{{list_id}}/subscribers.json', 'method': 'DELETE', },