<?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>竹枝 &#187; Twitter tools</title>
	<atom:link href="http://blog.anyshpm.com/tag/twitter-tools/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.anyshpm.com</link>
	<description>S &#38; H / M</description>
	<lastBuildDate>Sat, 24 Jul 2010 11:34:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<atom:link rel='hub' href='http://blog.anyshpm.com/?pushpress=hub'/>
		<item>
		<title>让Twitter tools用上Twitter API proxy</title>
		<link>http://blog.anyshpm.com/2010/02/05/change-twitter-tools-gear-to-twitter-api-proxy.html</link>
		<comments>http://blog.anyshpm.com/2010/02/05/change-twitter-tools-gear-to-twitter-api-proxy.html#comments</comments>
		<pubDate>Fri, 05 Feb 2010 13:56:27 +0000</pubDate>
		<dc:creator>anyshpm</dc:creator>
				<category><![CDATA[旅程]]></category>
		<category><![CDATA[GAE]]></category>
		<category><![CDATA[Twitter API proxy]]></category>
		<category><![CDATA[Twitter tools]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://blog.anyshpm.com/?p=693</guid>
		<description><![CDATA[博客放在国内，怎么让wordpress访问twitter呢？ 使用Twitter API proxy就可以了。 让博客通过Twitter API proxy访问twitter。 wordpress的插件很丰富，肯定有一个适合的Twitter插件。 看上了Twitter tools，可貌似它不支持Twitter API proxy。 怎么办呢？ 自己动手，丰衣足食啊。 找到twitter-tools.php文件中的： ?View Code PHP1 2 3 4 5 6 define&#40;'AKTT_API_POST_STATUS', 'http://twitter.com/statuses/update.json'&#41;; define&#40;'AKTT_API_USER_TIMELINE', 'http://twitter.com/statuses/user_timeline.json'&#41;; define&#40;'AKTT_API_STATUS_SHOW', 'http://twitter.com/statuses/show/###ID###.json'&#41;; define&#40;'AKTT_PROFILE_URL', 'http://twitter.com/###USERNAME###'&#41;; define&#40;'AKTT_STATUS_URL', 'http://twitter.com/###USERNAME###/statuses/###STATUS###'&#41;; define&#40;'AKTT_HASHTAG_URL', 'http://search.twitter.com/search?q=###HASHTAG###'&#41;; 用Twitter API proxy地址替换twitter.com即可。 我在GAE上搭建的Twitter API proxy可供大家免费无偿使用。 ?View Code PHP1 2 3 4 5 6 define&#40;'AKTT_API_POST_STATUS', 'http://anytwitter.appspot.com/api/statuses/update.json'&#41;; define&#40;'AKTT_API_USER_TIMELINE', 'http://anytwitter.appspot.com/api/statuses/user_timeline.json'&#41;; define&#40;'AKTT_API_STATUS_SHOW', 'http://anytwitter.appspot.com/api/statuses/show/###ID###.json'&#41;; [...]]]></description>
			<content:encoded><![CDATA[<p>博客放在国内，怎么让wordpress访问twitter呢？</p>
<p>使用Twitter API proxy就可以了。</p>
<p>让博客通过Twitter API proxy访问twitter。</p>
<p>wordpress的插件很丰富，肯定有一个适合的Twitter插件。</p>
<p>看上了Twitter tools，可貌似它不支持Twitter API proxy。</p>
<p>怎么办呢？</p>
<p>自己动手，丰衣足食啊。</p>
<p>找到twitter-tools.php文件中的：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p693code3'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6933"><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code" id="p693code3"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AKTT_API_POST_STATUS'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://twitter.com/statuses/update.json'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AKTT_API_USER_TIMELINE'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://twitter.com/statuses/user_timeline.json'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AKTT_API_STATUS_SHOW'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://twitter.com/statuses/show/###ID###.json'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AKTT_PROFILE_URL'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://twitter.com/###USERNAME###'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AKTT_STATUS_URL'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://twitter.com/###USERNAME###/statuses/###STATUS###'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AKTT_HASHTAG_URL'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://search.twitter.com/search?q=###HASHTAG###'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>用Twitter API proxy地址替换twitter.com即可。</p>
<p>我在GAE上搭建的Twitter API proxy可供大家免费无偿使用。</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p693code4'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6934"><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code" id="p693code4"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AKTT_API_POST_STATUS'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://anytwitter.appspot.com/api/statuses/update.json'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AKTT_API_USER_TIMELINE'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://anytwitter.appspot.com/api/statuses/user_timeline.json'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AKTT_API_STATUS_SHOW'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://anytwitter.appspot.com/api/statuses/show/###ID###.json'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AKTT_PROFILE_URL'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://anytwitter.appspot.com/api/###USERNAME###'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AKTT_STATUS_URL'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://anytwitter.appspot.com/api/###USERNAME###/statuses/###STATUS###'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AKTT_HASHTAG_URL'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://anytwitter.appspot.com/api/search?q=###HASHTAG###'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h3  class="related_post_title">相关文章:</h3><ul class="related_post"><li><a href="http://blog.anyshpm.com/2009/01/28/anynote.html" title="anyNote">anyNote</a> (0)</li><li><a href="http://blog.anyshpm.com/2008/08/31/audio-player.html" title="audio player">audio player</a> (0)</li><li><a href="http://blog.anyshpm.com/2010/02/09/change-wordpress-permalinks-404-error.html" title="修复因改变wordpress固定链接而导致的404错误">修复因改变wordpress固定链接而导致的404错误</a> (0)</li><li><a href="http://blog.anyshpm.com/2009/08/08/%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8%e8%87%aa%e5%b7%b1%e7%bf%bb%e8%af%91%e7%9a%84%e4%b8%bb%e9%a2%98.html" title="开始使用自己翻译的主题">开始使用自己翻译的主题</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.anyshpm.com/2010/02/05/change-twitter-tools-gear-to-twitter-api-proxy.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
