Update many 1.1 API endpoints.

This commit is contained in:
ayanamist 2013-04-06 17:23:53 +08:00
parent a489a47a67
commit b0a4eb29da

View file

@ -40,12 +40,12 @@ api_table = {
'url': '/statuses/user_timeline.json', 'url': '/statuses/user_timeline.json',
'method': 'GET', 'method': 'GET',
}, },
'getMentionsTimeline': {
# Interfacing with friends/followers 'url': '/statuses/mentions_timeline.json',
'getUserMentions': {
'url': '/statuses/mentions.json',
'method': 'GET', 'method': 'GET',
}, },
# Interfacing with friends/followers
'createFriendship': { 'createFriendship': {
'url': '/friendships/create.json', 'url': '/friendships/create.json',
'method': 'POST', 'method': 'POST',
@ -84,10 +84,6 @@ api_table = {
'url': '/statuses/retweets_of_me.json', 'url': '/statuses/retweets_of_me.json',
'method': 'GET', 'method': 'GET',
}, },
'retweetedByMe': {
'url': '/statuses/retweeted_by_me.json',
'method': 'GET',
},
'retweetedToMe': { 'retweetedToMe': {
'url': '/statuses/retweeted_to_me.json', 'url': '/statuses/retweeted_to_me.json',
'method': 'GET', 'method': 'GET',
@ -131,18 +127,22 @@ api_table = {
'url': '/direct_messages/sent.json', 'url': '/direct_messages/sent.json',
'method': 'GET', 'method': 'GET',
}, },
'showDirectMessages': {
'url': '/direct_messages/show.json',
'method': 'GET',
},
'sendDirectMessage': { 'sendDirectMessage': {
'url': '/direct_messages/new.json', 'url': '/direct_messages/new.json',
'method': 'POST', 'method': 'POST',
}, },
'destroyDirectMessage': { 'destroyDirectMessage': {
'url': '/direct_messages/destroy/{{id}}.json', 'url': '/direct_messages/destroy.json',
'method': 'POST', 'method': 'POST',
}, },
# Friendship methods # Friendship methods
'checkIfFriendshipExists': { 'lookupFriendship': {
'url': '/friendships/exists.json', 'url': '/friendships/lookup.json',
'method': 'GET', 'method': 'GET',
}, },
'showFriendship': { 'showFriendship': {
@ -162,37 +162,33 @@ api_table = {
# Favorites methods # Favorites methods
'getFavorites': { 'getFavorites': {
'url': '/favorites.json', 'url': '/favorites/list.json',
'method': 'GET', 'method': 'GET',
}, },
'createFavorite': { 'createFavorite': {
'url': '/favorites/create/{{id}}.json', 'url': '/favorites/create.json',
'method': 'POST', 'method': 'POST',
}, },
'destroyFavorite': { 'destroyFavorite': {
'url': '/favorites/destroy/{{id}}.json', 'url': '/favorites/destroy.json',
'method': 'POST', 'method': 'POST',
}, },
# Blocking methods # Blocking methods
'createBlock': { 'createBlock': {
'url': '/blocks/create/{{id}}.json', 'url': '/blocks/create.json',
'method': 'POST', 'method': 'POST',
}, },
'destroyBlock': { 'destroyBlock': {
'url': '/blocks/destroy/{{id}}.json', 'url': '/blocks/destroy.json',
'method': 'POST', 'method': 'POST',
}, },
'getBlocking': { 'getBlocking': {
'url': '/blocks/blocking.json', 'url': '/blocks/list.json',
'method': 'GET', 'method': 'GET',
}, },
'getBlockedIDs': { 'getBlockedIDs': {
'url': '/blocks/blocking/ids.json', 'url': '/blocks/ids.json',
'method': 'GET',
},
'checkIfBlockExists': {
'url': '/blocks/exists.json',
'method': 'GET', 'method': 'GET',
}, },
@ -266,7 +262,7 @@ api_table = {
'method': 'POST', 'method': 'POST',
}, },
'getListTimeline': { 'getListTimeline': {
'url': '/{{username}}/lists/{{list_id}}/statuses.json', 'url': '/lists/statuses.json',
'method': 'GET', 'method': 'GET',
}, },
'getSpecificList': { 'getSpecificList': {