2010/05/22

利用Google App Engine搭建支持Oauth的API

Need:
1.你有一个GoogleAppEngine的账户
2.有一个Twitter Apps的应用程序[ callback处填写:https://xxx.appspot.com/oauth/twitter/callback]
3.有PYthon环境或者诸如SDupload的工具
Step:
1.在这里下载搭建api所必须的GTAP GTAP 0.3.1 
2.在这里下载搭建oauth需要的源代码 oauth issues
3.在oauth.py中填入你自己的twitter apps各项信息[key/secret]
4.在app.yaml中填入你GAE的application名称[独一无二那个]
5.用SDupload上传至GAE
6.http://xxx.appspot.com/oauth/twitter/login登入此网址进行Oauth,并注册密码
7.https://xxx.appspot.com/gtap_oauth/[这个就是你的果实了]

enjoy...

1 comment:

  1. hello my friend! warm greeting ^^!
    your blog looks nice 0_0

    by the way,
    if you need to find unique fonts, you can go to our website.

    best regards;

    ReplyDelete