簡體   English   中英

如何使用org.scribe.oauth連接到tumblr API?

[英]How do I use org.scribe.oauth to connect to the tumblr API?

我已經按照org.scribe頁面上給出的教程進行了操作,但似乎不支持帶外回調。 有人能指出我正確的方向如何解決這個問題? 此外,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復制/粘貼到應用程序中,但這顯然不起作用。

你提供了一個回調網址嗎? 我添加了網址http://localhost:8080/甚至我正在開發一個桌面應用程序,它工作正常。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM