Back

支持oAuth的twitter api一枚

|

终于用twip搭好了一个api.如果你是墙内用户,可以参考下文将本api用于支持oAuth认证的客户端上.
Part 1:完成Twitter认证,此部分需要穿墙完成.
a.用浏览器打开api地址:~~https://www.skylast.com/t~~(由于流量限制,此链接已失效,你可以来信索取新地址).点击Sign in with twitter,你将会被链接到twitter官方网站.
[![图像-1](https://r2.livy.fun/2025/12/21/6402d0c0a9d93f4341f5f386180509fd.jpg)](https://www.skylast.com/blog/wp-content/uploads/2010/09/1.jpg)
b.输入你的twitter用户名和密码,Sign in.
[![图像-2](https://r2.livy.fun/2025/12/21/6402d0c0a9d93f4341f5f386180509fd.jpg)](https://www.skylast.com/blog/wp-content/uploads/2010/09/2.jpg)
c.单击allow.
[![图像-3](https://r2.livy.fun/2025/12/21/6402d0c0a9d93f4341f5f386180509fd.jpg)](https://www.skylast.com/blog/wp-content/uploads/2010/09/3.jpg)
d.这一步会返回,并提示输入密码.这个密码是用来登录api的,可以与twitter密码相同也可不同.建议保持一致好记忆.
[![图像-4](https://r2.livy.fun/2025/12/21/6402d0c0a9d93f4341f5f386180509fd.jpg)](https://www.skylast.com/blog/wp-content/uploads/2010/09/4.jpg)
f.看到类似下列页面就表示认证成功了.如果显示的failed,可以单击”Show your timeline”刷新页面.
[![图像-5](https://r2.livy.fun/2025/12/21/6402d0c0a9d93f4341f5f386180509fd.jpg)](https://www.skylast.com/blog/wp-content/uploads/2010/09/5.jpg)
Part2:在支持oAuth的客户端上使用该api,这里以android上的seesmic为例:
a.单击Add Twitter account.
[![seesmic_1](https://r2.livy.fun/2025/12/21/6402d0c0a9d93f4341f5f386180509fd.jpg)](https://www.skylast.com/blog/wp-content/uploads/2010/09/seesmic_1.jpg)
b.输入twitter用户名与密码,去掉Use secure connection前的勾.
[![seesmic_2](https://r2.livy.fun/2025/12/21/6402d0c0a9d93f4341f5f386180509fd.jpg)](https://www.skylast.com/blog/wp-content/uploads/2010/09/seesmic_2.jpg)
c.去掉页面底部的Use XAuth前面的勾,并点击Sign in.
[![seesmic_3](https://r2.livy.fun/2025/12/21/6402d0c0a9d93f4341f5f386180509fd.jpg)](https://www.skylast.com/blog/wp-content/uploads/2010/09/seesmic_3.jpg)
d.等待片刻直到出现下面的页面即为成功.
[![seesmic_4](https://r2.livy.fun/2025/12/21/6402d0c0a9d93f4341f5f386180509fd.jpg)](https://www.skylast.com/blog/wp-content/uploads/2010/09/seesmic_4.jpg)
理论上可以用于所有支持oAuth的客户端上,例如Nokia上面的Gravity.欢迎Follow @[finale](http://twitter.com/finale)

No comments yet

Leave a comment

About me

I live in Tasmania, an island a little far from the rest of the world and very close to the sea.
Father of two little girls, have two puppies.

Work

Work in IT industry, AI is my working partner.