Gae 自建API 代理不正常,Onedd 的 birdnet 代理不正常,Twitter 官方主站不能发推,但是我们还有 Gravity+ Twip API 代理!得益于开放的 Twitter,得益于我们充满共享精神的热诚 Geek,Twitter 仍然鲜活在移动世界,为我们把握地球的脉搏。
感谢@Yegle!他的blog在 一阁Blog。下面是来自于他的及时雨教程:
要求:
- 有一个处于墙外面的虚拟主机空间
- 标准的LAMP服务器(Apache和PHP是必须的)
搭建方法:
如果你有虚拟主机的 ssh 权限,在任意目录执行:
svn checkout http://twip.googlecode.com/svn/trunk/ twip-read-only
代码将会出现在 twip-read-only 文件夹下。
如果你只有虚拟主机的 ftp 权限:
下载以下四个文件:
http://twip.googlecode.com/svn/trunk/.htaccess
http://twip.googlecode.com/svn/trunk/index.php
将其中的 index.php、config.php、func.php、.htaccess 四个文件复制到你的虚拟主机 web 目录下任意文件夹,如 /twip 文件夹下,那么用 http://你的域名/twip 来访问这个 api 。
注意事项:
1、config.php里有部分可自定义的内容
2、日志默认在api所在目录下,而且是可以被第三方下载到的。请仔细斟酌后再决定是否启用日志功能(在config.php里修改为$dolog = false ;),或者将日志放在非web目录下。
详细讨论,请移步 Twitter 论坛:http://bbs.ifanr.com/viewthread.php?tid=2106&extra=page%3D1
感觉twitter越来越难上了,希望能解决gae的自建api问题,否则以后团购的范友岂不是为了要用gravity还得要有虚拟主机?不现实阿?
至少它是一条路。现在yegle兄就给大家贡献了他建的这个API代理。这个项目也是他发起的。
这比我那45度还难:)
I’ve been studying your entries right through my morning holiday, and I must admit the entire article has been very enlightening and really well written. I believed I would assist you to realize that for some reason this weblog does not view neatly in Internet Explorer 8. I want Microsoft may prevent changing their software. I have a question for you. Would you mind replacing weblog roll links? That may be in reality neat!
Hello there, simply turned into alert to your blog via Google, and located that it’s truly informative. I?m going to watch out for brussels. I will be grateful in the event you continue this in future. Numerous people will be benefited from your writing. Cheers!