How am I connected to Twitter

My arsenal has Twip, Tweetie, Dabr and Metrist and Nginx.

Twip is a simple script written in PHP which redirects HTTP request from user to Twitter official API endpoint, as long as you have a web hosting in U.S, you can easily set up a API proxy for your own’s sake.
Simply grab the tarball, extract it and rename index-example.com to index.php, modify the options within it to meet your requirement, such as open the access to your friends only.
If you are using Nginx like me, the default .htaccess won’t work, you have to write the rewrite rule yourself. It’s easy, add one line to the PHP fastcgi_parm part first, then rewrite all requests to index.php accordingly.

fastcgi_param   HTTP_AUTHORIZATION    $http_authorization;
location /twip {
    if(!-e $request_filename){
        rewrite ^/twip/(.*)$ /twip/index.php last;
    }
}

For desktop client, I’m using one Chrome extension ‘Metrist‘, it is beautiful and supports 3rd API proxy, plus it is written by a Chinese. (Though sometimes it is not that stable, maybe caused by the API proxy.)

On my iPod touch, surely the choice is Tweetie, needless to say it’s super awesome.

Also I’ve installed Dabr as well as it’s more convenient to navigate historical tweets and to access Twitter on any machine.
The version I adopted is provided by Blogkid which has been encrypted, so suppose it should be more safe to use and much more difficult to detect. Anyway you might sacrifice some speed to trade for that.

Sometimes Twip doesn’t work together with Metrist, and I haven’t figured out why, so I setup another API proxy utilizing Nginx as reversed proxy, it’s super fast, but lacks of authorization means, leave a comment if you know how:)

server
{
	listen      80;
	server_name t.yourname.com;

	location / {
		proxy_pass http://twitter.com/;
		proxy_redirect off;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	}
}

Welcome to follow me on Twitter.

About Kymair

A simple guy living in Zhuhai, likes reading, not go out often.
This entry was posted in Web. Bookmark the permalink.

One Response to How am I connected to Twitter

  1. Figo says:

    还好吧 小鱼 :)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>