Changes in protocols/twitter/twitter_lib.h [dff0e0b:b61c74c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter_lib.h
rdff0e0b rb61c74c 29 29 #include "twitter_http.h" 30 30 31 #define TWITTER_API_URL "http://api.twitter.com/1 .1"31 #define TWITTER_API_URL "http://api.twitter.com/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. json"35 #define TWITTER_STATUS_UPDATE_URL "/statuses/update.xml" 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. 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"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" 47 47 48 48 /* Users URLs */ 49 #define TWITTER_USERS_LOOKUP_URL "/users/lookup. json"49 #define TWITTER_USERS_LOOKUP_URL "/users/lookup.xml" 50 50 51 51 /* Direct messages URLs */ 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"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" 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. json"59 #define TWITTER_FRIENDSHIPS_DESTROY_URL "/friendships/destroy. json"60 #define TWITTER_FRIENDSHIPS_SHOW_URL "/friendships/show. json"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" 61 61 62 62 /* Social graphs URLs */ 63 #define TWITTER_FRIENDS_IDS_URL "/friends/ids. json"64 #define TWITTER_FOLLOWERS_IDS_URL "/followers/ids. json"63 #define TWITTER_FRIENDS_IDS_URL "/friends/ids.xml" 64 #define TWITTER_FOLLOWERS_IDS_URL "/followers/ids.xml" 65 65 66 66 /* Account URLs */ 67 #define TWITTER_ACCOUNT_RATE_LIMIT_URL "/account/rate_limit_status. json"67 #define TWITTER_ACCOUNT_RATE_LIMIT_URL "/account/rate_limit_status.xml" 68 68 69 69 /* Favorites URLs */ 70 #define TWITTER_FAVORITES_GET_URL "/favorites. json"70 #define TWITTER_FAVORITES_GET_URL "/favorites.xml" 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. json"79 #define TWITTER_REPORT_SPAM_URL "/report_spam.xml" 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);84 81 void twitter_get_timeline(struct im_connection *ic, gint64 next_cursor); 85 82 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); 86 85 void twitter_get_statuses_friends(struct im_connection *ic, gint64 next_cursor); 87 86
Note: See TracChangeset
for help on using the changeset viewer.