Changes in protocols/twitter/twitter_lib.h [b61c74c:dff0e0b]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter_lib.h
rb61c74c rdff0e0b 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_timeline.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 #define TWITTER_USER_STREAM_URL "https://userstream.twitter.com/1.1/user.json" 82 83 gboolean twitter_open_stream(struct im_connection *ic); 81 84 void twitter_get_timeline(struct im_connection *ic, gint64 next_cursor); 82 85 void twitter_get_friends_ids(struct im_connection *ic, gint64 next_cursor); 83 void twitter_get_home_timeline(struct im_connection *ic, gint64 next_cursor);84 void twitter_get_mentions(struct im_connection *ic, gint64 next_cursor);85 86 void twitter_get_statuses_friends(struct im_connection *ic, gint64 next_cursor); 86 87
Note: See TracChangeset
for help on using the changeset viewer.