rweibo 的 OAuth 授权失败... 怎么 debug?

2014-03-22 22:18:11 +08:00
 qian
发布页没人维护啊。。。不知道怎么办了。。。

OS X 10.9.2, R 3.0.3, RStudio 0.98.501, Rweibo 0.2-7, Safari 7.0.2, Mac 上装了 Little Snitch, 不过没跳窗口,应该没有被拦截

> require(Rweibo)
Loading required package: Rweibo
Loading required package: tools
Loading required package: RCurl
Loading required package: bitops
Loading required package: rjson
Loading required package: XML

Attaching package: ‘XML’

The following object is masked from ‘package:tools’:

toHTML

Loading required package: digest
# Rweibo Version: 0.2-7
> roauth <- createOAuth(app_name = "xxxxxxx", access_name = "rweibo")
# The port of help server was set to 80
starting httpd help server ...
Please input the codes here
CODE:

Safari 上地址栏是 https://api.weibo.com/oauth2/authorize?client_id=xxxxxxxxx&response_type=code&redirect_uri=http://127.0.0.1/library/Rweibo/doc/callback.html 窗口标题:第三方授权错误 网页内容:
访问出错了!
你所访问的站点在新浪微博的认证失败,请你联系{测试微博号}或者稍后再试。
(error:redirect_uri_mismatch)

网页上没有出现code。然后在 RStudio 按了几个回车。

starting httpd help server ... done
Saved!
Warning message:
oauth test failed, please check the connection or your application.
3766 次点击
所在节点    问与答
2 条回复
qian
2014-03-22 22:47:53 +08:00
现在已经解决了。发布页说明里写取消授权回调页不用填。其实还是要填的。。
die4live
2014-03-23 00:42:51 +08:00
居然还能看到R的问题 可以去统计之都问啊 这儿也没这节点

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/105440

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX