【问题标题】:How do I use org.scribe.oauth to connect to the tumblr API?如何使用 org.scribe.oauth 连接到 tumblr API?
【发布时间】:2013-05-18 01:14:21
【问题描述】:

我已按照org.scribe page 上的教程进行操作,但似乎不支持带外回调。有人可以指出我如何解决这个问题的正确方向吗?此外,更全面的 org.scribe 库教程或文档会有所帮助。

Exception in thread "main" org.scribe.exceptions.OAuthException: Response body is incorrect. Can't extract token and secret from this: 'Out-of-band ("oob") callbacks are not supported by this implementation.'
at org.scribe.extractors.TokenExtractorImpl.extract(TokenExtractorImpl.java:41)
at org.scribe.extractors.TokenExtractorImpl.extract(TokenExtractorImpl.java:27)
at org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:63)
at org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:39)
at org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:44)
at com.jruehl.tumbleweed.oauth.AuthenticationHandler.HandleAuthentication(AuthenticationHandler.java:30)
at com.jruehl.tumbleweed.TumbleWeed.main(TumbleWeed.java:30)

如何进行身份验证?我试图打开一个网页让用户将 PIN 复制/粘贴到应用程序中,但这显然不起作用。

【问题讨论】:

    标签: java api oauth tumblr scribe


    【解决方案1】:

    您是否提供了回调网址?我添加了 url http://localhost:8080/,即使我正在开发桌面应用程序,它也可以工作。

    【讨论】:

      猜你喜欢
      • 2014-02-16
      • 1970-01-01
      • 2013-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-24
      • 2020-06-19
      相关资源
      最近更新 更多