Mercurial > pidgin-twitter
comparison pidgin-twitter.h @ 284:2d559555875f
now message count can be specified in twitter API access.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 12 Jan 2009 00:59:41 +0900 |
parents | 986f949c741b |
children | 6d0bb66fedc7 |
comparison
equal
deleted
inserted
replaced
282:ba00b20d968b | 284:2d559555875f |
---|---|
139 #define OPT_FILTER_TWITTER OPT_PIDGINTWITTER "/filter_twitter" | 139 #define OPT_FILTER_TWITTER OPT_PIDGINTWITTER "/filter_twitter" |
140 #define OPT_FILTER_WASSR OPT_PIDGINTWITTER "/filter_wassr" | 140 #define OPT_FILTER_WASSR OPT_PIDGINTWITTER "/filter_wassr" |
141 #define OPT_FILTER_IDENTICA OPT_PIDGINTWITTER "/filter_identica" | 141 #define OPT_FILTER_IDENTICA OPT_PIDGINTWITTER "/filter_identica" |
142 #define OPT_FILTER_JISKO OPT_PIDGINTWITTER "/filter_jisko" | 142 #define OPT_FILTER_JISKO OPT_PIDGINTWITTER "/filter_jisko" |
143 #define OPT_STRIP_EXCESS_LF OPT_PIDGINTWITTER "/strip_excess_lf" | 143 #define OPT_STRIP_EXCESS_LF OPT_PIDGINTWITTER "/strip_excess_lf" |
144 #define OPT_RETRIEVE_COUNT OPT_PIDGINTWITTER "/retrieve_count" | |
144 | 145 |
145 #ifdef _WIN32 | 146 #ifdef _WIN32 |
146 #define OPT_PIDGIN_BLINK_IM PIDGIN_PREFS_ROOT "/win32/blink_im" | 147 #define OPT_PIDGIN_BLINK_IM PIDGIN_PREFS_ROOT "/win32/blink_im" |
147 #endif | 148 #endif |
148 | 149 |
178 #define P_SIZE_128_WASSR "\\.128\\." | 179 #define P_SIZE_128_WASSR "\\.128\\." |
179 #define P_EXCESS_LF "([\\r|\\n]{2,})" | 180 #define P_EXCESS_LF "([\\r|\\n]{2,})" |
180 | 181 |
181 /* twitter API specific macros */ | 182 /* twitter API specific macros */ |
182 #define TWITTER_BASE_URL "http://twitter.com" | 183 #define TWITTER_BASE_URL "http://twitter.com" |
183 #define TWITTER_STATUS_GET "GET /statuses/friends_timeline.xml HTTP/1.1\r\n" \ | 184 #define TWITTER_STATUS_GET "GET /statuses/friends_timeline.xml?count=%d HTTP/1.1\r\n" \ |
184 "Host: twitter.com\r\n" \ | 185 "Host: twitter.com\r\n" \ |
185 "User-Agent: pidgin-twitter\r\n" \ | 186 "User-Agent: pidgin-twitter\r\n" \ |
186 "Authorization: Basic %s\r\n" | 187 "Authorization: Basic %s\r\n" |
187 #define TWITTER_STATUS_POST "POST /statuses/update.xml HTTP/1.1\r\n" \ | 188 #define TWITTER_STATUS_POST "POST /statuses/update.xml HTTP/1.1\r\n" \ |
188 "Host: twitter.com\r\n" \ | 189 "Host: twitter.com\r\n" \ |
190 "Authorization: Basic %s\r\n" \ | 191 "Authorization: Basic %s\r\n" \ |
191 "Content-Length: %d\r\n" | 192 "Content-Length: %d\r\n" |
192 #define TWITTER_STATUS_FORMAT "status=%s&source=pidgintwitter" | 193 #define TWITTER_STATUS_FORMAT "status=%s&source=pidgintwitter" |
193 #define TWITTER_DEFAULT_INTERVAL (60) | 194 #define TWITTER_DEFAULT_INTERVAL (60) |
194 #define TWITTER_DEFAULT_ICON_URL "http://static.twitter.com/images/default_profile_bigger.png" | 195 #define TWITTER_DEFAULT_ICON_URL "http://static.twitter.com/images/default_profile_bigger.png" |
196 #define TWITTER_DEFAULT_RETRIEVE_COUNT (20) | |
195 | 197 |
196 /* wassr specific macros */ | 198 /* wassr specific macros */ |
197 #define WASSR_POST_LEN (255) | 199 #define WASSR_POST_LEN (255) |
198 | 200 |
199 /* identica specific macros */ | 201 /* identica specific macros */ |