diff --git a/twython3k/twitter_endpoints.py b/twython3k/twitter_endpoints.py index 42bd5a1..6ad15bc 100644 --- a/twython3k/twitter_endpoints.py +++ b/twython3k/twitter_endpoints.py @@ -21,6 +21,16 @@ api_table = { 'method': 'GET', }, + 'verifyCredentials': { + 'url': '/account/verify_credentials.json', + 'method': 'GET', + }, + + 'endSession' : { + 'url': '/account/end_session.json', + 'method': 'POST', + }, + # Timeline methods 'getPublicTimeline': { 'url': '/statuses/public_timeline.json', @@ -68,6 +78,14 @@ api_table = { 'url': '/followers/ids.json', 'method': 'GET', }, + 'getIncomingFriendshipIDs': { + 'url': '/friendships/incoming.json', + 'method': 'GET', + }, + 'getOutgoingFriendshipIDs': { + 'url': '/friendships/outgoing.json', + 'method': 'GET', + }, # Retweets 'reTweet': { @@ -243,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': { @@ -270,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', },