在GAE上搭建Twitter API和Search API

以前用的API是用birdnest在Google App Engine上搭建的,但没有Search API,在iPhone的Twitter上用起来很不爽,还好在Google Code里找到个更好的——gtap,带Search API。下面搭建这个简单的API。

1、注册Google App Engine,地址 http://appengine.google.com/,建立个Application,假设我建立的ID为nietwitterapi。

2、先下载安装Python,再去Google App Engine SDK for Python下载安装适合自己系统的SDK。

3、下载gatp,解压后放到C盘,打开app.yaml把"your-application-id"改为你刚才注册的App Engine ID,如我刚才假设的“nietwitterapi”。

4、打开CMD(命令提示符),输入“cd /”,再输入“appcfg.py update gatp”,然后输入自己的Google账户和密码完成上传。

5、设置你的客户端设置API,例如我刚才假设的API:https://nietwitterapi.appspot.com/api和Search API:https://nietwitterapi.appspot.com/search。

我猜~这些文章你可能也感兴趣

Nie
Tags , ,

相关文章

7 Comments

  1. fallensera said:

    求教NIE老大- -,,我按照说明搭起来了,虽然能看到timeline但是更新自己的状态或者回复别人的时候都报错- -,,,求大大赐教~~~

    • Nie said:

      我用Twitter for iPhone只有retweet时提示Forbidden,其他一切正常,出现异常可能是Twitter的限制。

  2. Pingback: Tweets that mention 在GAE上搭建Twitter API和Search API - 今日杂记 -- Topsy.com

  3. johntxq said:

    我哭了,我用在iphone的twitter客户端上提示
    error
    Could not authenticate you.(Secure connection failed).
    为什么在国内想用iphone 上twitter就这么难。。。。

    • Nie said:

      哎,我也遇到各种问题,还好有多种准备。
      还是用VPN吧,最简单了

*


Top