- Timestamp:
- 2012-11-04T22:23:07Z (12 years ago)
- Branches:
- master
- Children:
- c08d201
- Parents:
- ba654ec
- Location:
- protocols/twitter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter_lib.c
rba654ec r3b4a22a 1032 1032 char *url; 1033 1033 url = g_strdup_printf("%s%llu%s", TWITTER_STATUS_DESTROY_URL, 1034 (unsigned long long) id, ". xml");1034 (unsigned long long) id, ".json"); 1035 1035 twitter_http(ic, url, twitter_http_post, ic, 1, NULL, 0); 1036 1036 g_free(url); … … 1041 1041 char *url; 1042 1042 url = g_strdup_printf("%s%llu%s", TWITTER_STATUS_RETWEET_URL, 1043 (unsigned long long) id, ". xml");1043 (unsigned long long) id, ".json"); 1044 1044 twitter_http(ic, url, twitter_http_post, ic, 1, NULL, 0); 1045 1045 g_free(url); … … 1067 1067 char *url; 1068 1068 url = g_strdup_printf("%s%llu%s", TWITTER_FAVORITE_CREATE_URL, 1069 (unsigned long long) id, ". xml");1069 (unsigned long long) id, ".json"); 1070 1070 twitter_http(ic, url, twitter_http_post, ic, 1, NULL, 0); 1071 1071 g_free(url); -
protocols/twitter/twitter_lib.h
rba654ec r3b4a22a 29 29 #include "twitter_http.h" 30 30 31 #define TWITTER_API_URL "http://api.twitter.com/1 "31 #define TWITTER_API_URL "http://api.twitter.com/1.1" 32 32 #define IDENTICA_API_URL "https://identi.ca/api" 33 33 34 34 /* Status URLs */ 35 #define TWITTER_STATUS_UPDATE_URL "/statuses/update. xml"35 #define TWITTER_STATUS_UPDATE_URL "/statuses/update.json" 36 36 #define TWITTER_STATUS_SHOW_URL "/statuses/show/" 37 37 #define TWITTER_STATUS_DESTROY_URL "/statuses/destroy/" … … 39 39 40 40 /* Timeline URLs */ 41 #define TWITTER_PUBLIC_TIMELINE_URL "/statuses/public_timeline. xml"42 #define TWITTER_FEATURED_USERS_URL "/statuses/featured. xml"43 #define TWITTER_FRIENDS_TIMELINE_URL "/statuses/friends_timeline. xml"44 #define TWITTER_HOME_TIMELINE_URL "/statuses/home_timeline. xml"45 #define TWITTER_MENTIONS_URL "/statuses/mentions. xml"46 #define TWITTER_USER_TIMELINE_URL "/statuses/user_timeline. xml"41 #define TWITTER_PUBLIC_TIMELINE_URL "/statuses/public_timeline.json" 42 #define TWITTER_FEATURED_USERS_URL "/statuses/featured.json" 43 #define TWITTER_FRIENDS_TIMELINE_URL "/statuses/friends_timeline.json" 44 #define TWITTER_HOME_TIMELINE_URL "/statuses/home_timeline.json" 45 #define TWITTER_MENTIONS_URL "/statuses/mentions.json" 46 #define TWITTER_USER_TIMELINE_URL "/statuses/user_timeline.json" 47 47 48 48 /* Users URLs */ 49 #define TWITTER_USERS_LOOKUP_URL "/users/lookup. xml"49 #define TWITTER_USERS_LOOKUP_URL "/users/lookup.json" 50 50 51 51 /* Direct messages URLs */ 52 #define TWITTER_DIRECT_MESSAGES_URL "/direct_messages. xml"53 #define TWITTER_DIRECT_MESSAGES_NEW_URL "/direct_messages/new. xml"54 #define TWITTER_DIRECT_MESSAGES_SENT_URL "/direct_messages/sent. xml"52 #define TWITTER_DIRECT_MESSAGES_URL "/direct_messages.json" 53 #define TWITTER_DIRECT_MESSAGES_NEW_URL "/direct_messages/new.json" 54 #define TWITTER_DIRECT_MESSAGES_SENT_URL "/direct_messages/sent.json" 55 55 #define TWITTER_DIRECT_MESSAGES_DESTROY_URL "/direct_messages/destroy/" 56 56 57 57 /* Friendships URLs */ 58 #define TWITTER_FRIENDSHIPS_CREATE_URL "/friendships/create. xml"59 #define TWITTER_FRIENDSHIPS_DESTROY_URL "/friendships/destroy. xml"60 #define TWITTER_FRIENDSHIPS_SHOW_URL "/friendships/show. xml"58 #define TWITTER_FRIENDSHIPS_CREATE_URL "/friendships/create.json" 59 #define TWITTER_FRIENDSHIPS_DESTROY_URL "/friendships/destroy.json" 60 #define TWITTER_FRIENDSHIPS_SHOW_URL "/friendships/show.json" 61 61 62 62 /* Social graphs URLs */ 63 #define TWITTER_FRIENDS_IDS_URL "/friends/ids. xml"64 #define TWITTER_FOLLOWERS_IDS_URL "/followers/ids. xml"63 #define TWITTER_FRIENDS_IDS_URL "/friends/ids.json" 64 #define TWITTER_FOLLOWERS_IDS_URL "/followers/ids.json" 65 65 66 66 /* Account URLs */ 67 #define TWITTER_ACCOUNT_RATE_LIMIT_URL "/account/rate_limit_status. xml"67 #define TWITTER_ACCOUNT_RATE_LIMIT_URL "/account/rate_limit_status.json" 68 68 69 69 /* Favorites URLs */ 70 #define TWITTER_FAVORITES_GET_URL "/favorites. xml"70 #define TWITTER_FAVORITES_GET_URL "/favorites.json" 71 71 #define TWITTER_FAVORITE_CREATE_URL "/favorites/create/" 72 72 #define TWITTER_FAVORITE_DESTROY_URL "/favorites/destroy/" … … 77 77 78 78 /* Report spam */ 79 #define TWITTER_REPORT_SPAM_URL "/report_spam. xml"79 #define TWITTER_REPORT_SPAM_URL "/report_spam.json" 80 80 81 81 void twitter_get_timeline(struct im_connection *ic, gint64 next_cursor);
Note: See TracChangeset
for help on using the changeset viewer.