- Timestamp:
- 2013-01-14T22:32:59Z (12 years ago)
- Branches:
- master
- Children:
- a9a6598
- Parents:
- 35571fb
- Location:
- protocols/twitter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter_lib.c
r35571fb r75bda8b 1242 1242 void twitter_favourite_tweet(struct im_connection *ic, guint64 id) 1243 1243 { 1244 char *url; 1245 url = g_strdup_printf("%s%llu%s", TWITTER_FAVORITE_CREATE_URL, 1246 (unsigned long long) id, ".json"); 1247 twitter_http_f(ic, url, twitter_http_post, ic, 1, NULL, 0, 1248 TWITTER_HTTP_USER_ACK); 1249 g_free(url); 1250 } 1244 char *args[2] = { 1245 "id", 1246 NULL, 1247 }; 1248 args[1] = g_strdup_printf("%llu", (unsigned long long) id); 1249 twitter_http_f(ic, TWITTER_FAVORITE_CREATE_URL, twitter_http_post, 1250 ic, 1, args, 2, TWITTER_HTTP_USER_ACK); 1251 g_free(args[1]); 1252 } -
protocols/twitter/twitter_lib.h
r35571fb r75bda8b 69 69 /* Favorites URLs */ 70 70 #define TWITTER_FAVORITES_GET_URL "/favorites.json" 71 #define TWITTER_FAVORITE_CREATE_URL "/favorites/create /"72 #define TWITTER_FAVORITE_DESTROY_URL "/favorites/destroy /"71 #define TWITTER_FAVORITE_CREATE_URL "/favorites/create.json" 72 #define TWITTER_FAVORITE_DESTROY_URL "/favorites/destroy.json" 73 73 74 74 /* Block URLs */
Note: See TracChangeset
for help on using the changeset viewer.