Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter_lib.h

    rdff0e0b rb61c74c  
    2929#include "twitter_http.h"
    3030
    31 #define TWITTER_API_URL "http://api.twitter.com/1.1"
     31#define TWITTER_API_URL "http://api.twitter.com/1"
    3232#define IDENTICA_API_URL "https://identi.ca/api"
    3333
    3434/* Status URLs */
    35 #define TWITTER_STATUS_UPDATE_URL "/statuses/update.json"
     35#define TWITTER_STATUS_UPDATE_URL "/statuses/update.xml"
    3636#define TWITTER_STATUS_SHOW_URL "/statuses/show/"
    3737#define TWITTER_STATUS_DESTROY_URL "/statuses/destroy/"
     
    3939
    4040/* 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"
    4747
    4848/* Users URLs */
    49 #define TWITTER_USERS_LOOKUP_URL "/users/lookup.json"
     49#define TWITTER_USERS_LOOKUP_URL "/users/lookup.xml"
    5050
    5151/* 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"
    5555#define TWITTER_DIRECT_MESSAGES_DESTROY_URL "/direct_messages/destroy/"
    5656
    5757/* 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"
    6161
    6262/* 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"
    6565
    6666/* 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"
    6868
    6969/* Favorites URLs */
    70 #define TWITTER_FAVORITES_GET_URL "/favorites.json"
     70#define TWITTER_FAVORITES_GET_URL "/favorites.xml"
    7171#define TWITTER_FAVORITE_CREATE_URL "/favorites/create/"
    7272#define TWITTER_FAVORITE_DESTROY_URL "/favorites/destroy/"
     
    7777
    7878/* Report spam */
    79 #define TWITTER_REPORT_SPAM_URL "/report_spam.json"
     79#define TWITTER_REPORT_SPAM_URL "/report_spam.xml"
    8080
    81 #define TWITTER_USER_STREAM_URL "https://userstream.twitter.com/1.1/user.json"
    82 
    83 gboolean twitter_open_stream(struct im_connection *ic);
    8481void twitter_get_timeline(struct im_connection *ic, gint64 next_cursor);
    8582void twitter_get_friends_ids(struct im_connection *ic, gint64 next_cursor);
     83void twitter_get_home_timeline(struct im_connection *ic, gint64 next_cursor);
     84void twitter_get_mentions(struct im_connection *ic, gint64 next_cursor);
    8685void twitter_get_statuses_friends(struct im_connection *ic, gint64 next_cursor);
    8786
Note: See TracChangeset for help on using the changeset viewer.