Added a few missing endpoints, fixed a few wrong endpoints

This commit is contained in:
Erik Scheffers 2011-02-18 17:09:19 +08:00 committed by Ryan McGrath
parent e13d371fef
commit ec6169292d

View file

@ -26,6 +26,11 @@ api_table = {
'method': 'GET', 'method': 'GET',
}, },
'endSession' : {
'url': '/account/end_session.json',
'method': 'POST',
},
# Timeline methods # Timeline methods
'getPublicTimeline': { 'getPublicTimeline': {
'url': '/statuses/public_timeline.json', 'url': '/statuses/public_timeline.json',
@ -256,7 +261,11 @@ api_table = {
'method': 'GET', 'method': 'GET',
}, },
'getListMemberships': { 'getListMemberships': {
'url': '/{{username}}/lists/followers.json', 'url': '/{{username}}/lists/memberships.json',
'method': 'GET',
},
'getListSubscriptions': {
'url': '/{{username}}/lists/subscriptions.json',
'method': 'GET', 'method': 'GET',
}, },
'deleteList': { 'deleteList': {
@ -283,12 +292,16 @@ api_table = {
'url': '/{{username}}/{{list_id}}/members.json', 'url': '/{{username}}/{{list_id}}/members.json',
'method': 'DELETE', 'method': 'DELETE',
}, },
'getListSubscribers': {
'url': '/{{username}}/{{list_id}}/subscribers.json',
'method': 'GET',
},
'subscribeToList': { 'subscribeToList': {
'url': '/{{username}}/{{list_id}}/following.json', 'url': '/{{username}}/{{list_id}}/subscribers.json',
'method': 'POST', 'method': 'POST',
}, },
'unsubscribeFromList': { 'unsubscribeFromList': {
'url': '/{{username}}/{{list_id}}/following.json', 'url': '/{{username}}/{{list_id}}/subscribers.json',
'method': 'DELETE', 'method': 'DELETE',
}, },