在google app engine上用birdnest搭了个twitter proxy
rt
是可忍孰不可忍
终于出手了
首先
wget http://googleappengine.googlecode.com/files/google_appengine_1.2.0.zip
unzip -x google_appengine_1.2.0.zip
这是下载、安装google app engine for python的sdk
然后
cd google_appengine
svn checkout http://birdnest.googlecode.com/svn/branches/gae gae
这个是从birdnest官网上check out出来gae分支的代码
还有种说法是
svn checkout http://birdnest.googlecode.com/svn/trunk/ birdnest-read-only
但有人说一定要gae分支,否则有问题,所以我这里就是用的gae分支
接着
vim gae/app.yaml
将第一行的application: nest改成application: xxxxxxx
其中xxxxxx是你在google app engine上新建的app_id
可以用http://xxxxxx.appspot.com访问你的app
最后
./appcfg.py update gae
将应用上传到gae(google app engine)
至此
birdnest在你的google app engine上就搭好了
测试下
http://xxxxxx.appspot.com能访问(假设你的app_id是xxxxxx)
http://xxxxxx.appspot.com/api/能出现twitter的主页(假设你的app_id是xxxxxx)
就成功了
我在我的adp1(android develop phone 1)上用twidroid的时候
开始老不行
后来才发现原来是api的url地址写错了
写成xxxxxx.appspot.com/api了
我改成xxxxxx.appspot.com/api/就好了
终于翻墙上来了
原创文章,转载请注明: 转载自嘻嘻哈哈的部落格(blog)


我这边api打开正常,但是登录之后还是转到twitter.com/sessions,结果还是要撞墙,怎么回事呢
你不会直接在/api/出来的twitter页面上直接登录吧
这样肯定不行的呀
这里/api/出来twitter的首页只是表明你的birdnest搭好了
你要正确使用这个
还需要有支持设置proxy api的twitter客户端才行啊