<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>A colourful bubble? &#187; JSONP</title>
	<atom:link href="http://www.paopao.name/tag/jsonp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.paopao.name</link>
	<description>生活 读书 新知</description>
	<lastBuildDate>Wed, 20 May 2009 02:22:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>你的第一条饭否/ Twitter 消息</title>
		<link>http://www.paopao.name/programme/javascript/your-first-fanfou-twitter-message.html</link>
		<comments>http://www.paopao.name/programme/javascript/your-first-fanfou-twitter-message.html#comments</comments>
		<pubDate>Mon, 27 Apr 2009 02:59:58 +0000</pubDate>
		<dc:creator>paopao</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[WebDevelop]]></category>
		<category><![CDATA[饭否]]></category>
		<category><![CDATA[GAE]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[JSONP]]></category>
		<category><![CDATA[tinyurl]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.paopao.name/fanfou/your-first-fanfou-twitter-message.html</guid>
		<description><![CDATA[前天在饭否上看到有些人在玩一个 Twitter 应用，这个应用可以查出你加入 Twitter 的时间。觉得蛮好玩的，因为我用 Twitter 很少（主要是觉得网页版速度不够快，又不想再开一个客户端），所以... ]]></description>
			<content:encoded><![CDATA[<p>前天在饭否上看到有些人在玩一个<a href="http://whendidyoujointwitter.appspot.com/" target="_blank"> Twitter 应用</a>，这个应用可以查出你加入 Twitter 的时间。觉得蛮好玩的，因为我用 Twitter 很少（主要是觉得网页版速度不够快，又不想再开一个客户端），所以想看看能不能移植到饭否来。虽然<a href="http://code.google.com/p/fanfou-api/wiki/ApiDocumentation" target="_blank">饭否的 API</a> 和 Twitter 的基本相同，但是在用户信息这部分稍有不同，饭否并没有提供用户的创建时间这个字段。</p>
<p>没办法，只好曲线救国了&#8230; 我用了搜索用户消息的办法来查找用户的第一条消息，虽然这和用户的创建时间不一定一样，不过这也算是另一种应用吧 ^_^</p>
<p>第一次使用 <a href="http://code.google.com/appengine/" target="_blank">Google App Engine</a> 来部署应用，不过没用到 Python (因为不会 =,= )，只是直接使用了静态文件：</p>
<p><a href="http://yourfirstfanfoumessage.appspot.com/" target="_blank">你在饭否的第一条消息？</a><br />
<ins datetime="2009-04-28T01:46:47+00:00">不幸的发现饭否的 API 也有同样的限制，虽然没有在文档里写明，但是经过测试，只能得到最多 3,200 条用户消息&#8230;</ins><br />
<ins datetime="2009-04-30T04:04:02+00:00"><strong>Update 了一个新的版本，现在应该可以查询所有人的第一条消息了，即使你是消息数超过 3,200 的饭否狂人 <img src='http://www.paopao.name/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </strong></ins></p>
<p><a href="http://yourfirsttwitter.appspot.com/" target="_blank">Your First Twitter?</a><br />
<ins datetime="2009-04-27T03:50:20+00:00">Twitter 这个版本有点问题，由于 API 的限制，只能得到最多 3,200 条用户消息，所以消息数超过 3,200 的目前还无法查到第一条消息&#8230;</ins></p>
<blockquote><p>Rest API Limit<br />
Clients may request up to 3,200 statuses via the page and count parameters for timeline REST API methods. </p></blockquote>
<p><a href="http://yourfirsttwitter.appspot.com/search.htm" target="_blank">Your First Twitter? (Search Version)</a><br />
<ins datetime="2009-04-27T13:55:03+00:00">Twitter 消息数超过 3,200 的 Twitter 狂人们可以尝试这个版本，通过 google 搜索来查找的，不一定能成功</ins></p>
<p>另外第一次用到了 <a href="http://www.google.com/search?q=JSONP" target="_blank">JSONP</a> 技术，和 <a href="http://jquery.com/" target="_blank">Jquery</a> 结合起来使用的话，很好很方便。</p>
<p>感谢 James Padolsey 的 <a href="http://james.padolsey.com/javascript/create-a-tinyurl-with-jsonp/" target="_blank">TinyURL JSONP API</a> ，可以很方便的得到缩短网址。</p>
<img src="http://www.paopao.name/?ak_action=api_record_view&id=114&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.paopao.name/programme/javascript/your-first-fanfou-twitter-message.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

