Mercurial > pidgin-twitter
diff twitter_api.h @ 357:732de90812d8
- fixed memory leaks
- some code cleanups
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Fri, 27 Aug 2010 01:13:44 +0900 |
parents | 0fe895195132 |
children |
line wrap: on
line diff
--- a/twitter_api.h Thu Aug 26 15:05:57 2010 +0900 +++ b/twitter_api.h Fri Aug 27 01:13:44 2010 +0900 @@ -3,12 +3,14 @@ #include <cipher.h> /* from libpurple */ #include <request.h> -//#include <conversation.h> #include <math.h> /* twitter API specific macros */ -#define TWITTER_BASE_URL "http://twitter.com" +#define TWITTER_BASE_URL "http://twitter.com" #define TWITTER_API_BASE_URL "http://api.twitter.com" +#define REQUEST_TOKEN_URL "http://twitter.com/oauth/request_token" +#define ACCESS_TOKEN_URL "http://twitter.com/oauth/access_token" +#define AUTHORIZE_URL "http://twitter.com/oauth/authorize" #define TWITTER_STATUS_GET "GET /1/statuses/home_timeline.xml?%s HTTP/1.1\r\n" \ "Host: api.twitter.com\r\n" \ @@ -30,7 +32,6 @@ "Content-Length: %d\r\n" #define TWITTER_STATUS_FORMAT "&source=pidgintwitter&status=%s" -//#define TWITTER_REPLY_FORMAT "&source=pidgintwitter&status=%s&in_reply_to_status_id=%llu" #define TWITTER_DEFAULT_INTERVAL (60) #define TWITTER_OLD_DEFAULT_ICON_URL "http://static.twitter.com/images/default_profile_bigger.png"