Twitter Logs

API Summary

API Documentation
http://groups.google.com/group/twitter-development-talk/web/api-documentation
Supported Media Types
JSON, XML, RSS, Atom
Authentication
HTTP Basic Authentication with the user's Twitter username and password

HTTP Logs

Post A Message

Post Message Response


REQUEST: **************
POST /statuses/update.xml HTTP/1.1
user-agent:venner-web/1.0b
Host: twitter.com
Accept: */*
Content-Length:20
Authorization: Basic **********************

status=testing again
RESPONSE: **************
HTTP/1.1 200 OK
Date: Sat, 07 Jun 2008 01:13:55 GMT
Server: hi
Status: 200 OK
P3P: CP="NOI DSP COR NID ADMa OPTa OUR NOR"
X-Runtime: 0.15122
ETag: "c7d75bf907735e24b6cc04e26c12dbf9"
Cache-Control: private, max-age=0, must-revalidate, max-age=1800
Content-Type: application/xml; charset=utf-8
Content-Length: 783
Set-Cookie: lang=en; path=/
Set-Cookie: lang=en; path=/
Set-Cookie: _twitter_sess=****************; domain=.twitter.com; path=/
Via: 1.1 twitter-web056.twitter.com
Expires: Sat, 07 Jun 2008 01:43:55 GMT
Vary: Accept-Encoding
Connection: close
	    	

Get Public Stream

Get Public Stream Response


REQUEST: **************
GET /statuses/public_timeline.xml HTTP/1.1
user-agent:venner-web/1.0b
Host: twitter.com
Accept: */*
Content-Length:20
Authorization: Basic **********=

status=testing again

RESPONSE: **************
HTTP/1.1 200 OK
Date: Sat, 07 Jun 2008 01:15:49 GMT
Server: hi
Status: 200 OK
P3P: CP="NOI DSP COR NID ADMa OPTa OUR NOR"
X-Runtime: 1.09207
ETag: "d0f0441eb29599dda65e846c09a9770f"
Cache-Control: private, max-age=0, must-revalidate, max-age=1800
Content-Type: application/xml; charset=utf-8
Content-Length: 19719
Set-Cookie: lang=en; path=/
Set-Cookie: lang=en; path=/
Set-Cookie: _twitter_sess=*************; domain=.twitter.com; path=/
Via: 1.1 twitter-web024.twitter.com
Expires: Sat, 07 Jun 2008 01:45:49 GMT
Vary: Accept-Encoding
Connection: close
	     

Get Filtered Stream (messages from user and friends)

Get Filtered Stream Response


REQUEST: **************
GET /statuses/friends_timeline.xml HTTP/1.1
user-agent:venner-web/1.0b
Host: twitter.com
Accept: */*
Authorization: Basic ************

RESPONSE: **************
HTTP/1.1 200 OK
Date: Sat, 07 Jun 2008 02:47:03 GMT
Server: hi
Status: 200 OK
P3P: CP="NOI DSP COR NID ADMa OPTa OUR NOR"
X-Runtime: 0.06719
ETag: "0df89b7c6d0a2e1c57caeff1efc40766"
Cache-Control: private, max-age=0, must-revalidate, max-age=1800
Content-Type: application/xml; charset=utf-8
Content-Length: 18093
Set-Cookie: lang=en; path=/
Set-Cookie: lang=en; path=/
Set-Cookie: _twitter_sess=******************; domain=.twitter.com; path=/
Via: 1.1 twitter-web007.twitter.com
Expires: Sat, 07 Jun 2008 03:17:03 GMT
Vary: Accept-Encoding
Connection: close
	     

Get Message Detail

Get Message Detail Response


REQUEST: **************
GET /statuses/show/828777709.xml HTTP/1.1
user-agent:venner-web/1.0b
Host: twitter.com
Accept: */*
Authorization: Basic ************

RESPONSE: **************
HTTP/1.1 200 OK
Date: Sat, 07 Jun 2008 02:48:00 GMT
Server: hi
Status: 200 OK
P3P: CP="NOI DSP COR NID ADMa OPTa OUR NOR"
X-Runtime: 0.43908
ETag: "91468ecd4a6791f2f9f13c55b1871e2e"
Cache-Control: private, max-age=0, must-revalidate, max-age=1800
Content-Type: application/xml; charset=utf-8
Content-Length: 888
Set-Cookie: lang=en; path=/
Set-Cookie: lang=en; path=/
Set-Cookie: _twitter_sess=******************; domain=.twitter.com; path=/
Via: 1.1 twitter-web007.twitter.com
Expires: Sat, 07 Jun 2008 03:18:00 GMT
Vary: Accept-Encoding
Connection: close
	     

Get User Profile

Get User Profile Response


REQUEST: **************
GET /users/show/mamund.xml HTTP/1.1
user-agent:venner-web/1.0b
Host: twitter.com
Accept: */*
Authorization: Basic ****************

RESPONSE: **************
HTTP/1.1 200 OK
Date: Sat, 07 Jun 2008 02:48:35 GMT
Server: hi
Status: 200 OK
P3P: CP="NOI DSP COR NID ADMa OPTa OUR NOR"
X-Runtime: 0.17970
ETag: "f4bcb560e123a3ea388cefcd611c54fe"
Cache-Control: private, max-age=0, must-revalidate, max-age=1800
Content-Type: application/xml; charset=utf-8
Content-Length: 1395
Set-Cookie: lang=en; path=/
Set-Cookie: lang=en; path=/
Set-Cookie: _twitter_sess=****************; domain=.twitter.com; path=/
Via: 1.1 twitter-web062.twitter.com
Expires: Sat, 07 Jun 2008 03:18:35 GMT
Vary: Accept-Encoding
Connection: close