Changeset 3b878a1 for protocols/twitter/twitter_http.c
- Timestamp:
- 2010-05-02T21:20:09Z (14 years ago)
- Branches:
- master
- Children:
- 6824fb3
- Parents:
- 839189b (diff), f4b0911 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter_http.c
r839189b r3b878a1 29 29 ****************************************************************************/ 30 30 31 #include "twitter_http.h"32 31 #include "twitter.h" 33 32 #include "bitlbee.h" … … 39 38 #include <errno.h> 40 39 40 #include "twitter_http.h" 41 41 42 42 43 char *twitter_url_append(char *url, char *key, char* value); … … 46 47 * This is actually pretty generic function... Perhaps it should move to the lib/http_client.c 47 48 */ 48 void *twitter_http(char *url_string, http_input_function func, gpointer data, int is_post, char* user, char* pass, char* oauth_token, char** arguments, int arguments_len)49 void *twitter_http(char *url_string, http_input_function func, gpointer data, int is_post, char* user, char* pass, struct oauth_info* oi, char** arguments, int arguments_len) 49 50 { 50 51 url_t *url = g_new0( url_t, 1 ); … … 111 112 112 113 // If a pass and user are given we append them to the request. 113 if (o auth_token)114 if (oi) 114 115 { 115 116 char *full_header; 116 117 117 full_header = oauth_http_header(oauth_token, 118 is_post ? "POST" : "GET", 118 full_header = oauth_http_header(oi, is_post ? "POST" : "GET", 119 119 url_string, url_arguments); 120 120
Note: See TracChangeset
for help on using the changeset viewer.