what's the minimax code to reuse access token?
the following code throws an exception:
Twitter twitter = new Twitter();
twitter.setOAuthAccessToken("token", "tokenSecret");
Status status = twitter.updateStatus("desktop twitter");
Exception in thread "main" java.lang.IllegalStateException: Neither
user ID/password combination nor OAuth consumer key/secret combination
supplied
On May 19, 5:07 pm, Yusuke Yamamoto <[email protected]> wrote:
> Hi all,
>
> Twitter4J 2.0.4 is available for
> download.http://yusuke.homeip.net/twitter4j/en/index.html#download
> It's also available at the Maven central
> repository.http://repo1.maven.org/maven2/net/homeip/yusuke/twitter4j/
>
> Previous versions have a compatibility issue with OAuth since May 13th.
> Projects requiring OAuth support need to migrate to this version.
>
> Compatibility notes:
> - retirement of ExtendedUser class
> Following methods return User, or List<User> instead of ExtendedUser,
> or List<ExtendedUser>:
> getUserDetail()
> verifyCredentials()
> updateProfile()
> updateProfileColors()
> getBlockingUsers()
> getAuthenticatedUser()
>
> The method signatures of TwitterListener and TwitterAdapter are
> changed accordingly.
>
> "ExtendedUser" and "UserWithStatus" class are retired(deleted) since
> the API returns extended user information with all methods.
> Use "User" class instead.
>
> - Streaming API support
> Now Twitter4J supports the Streaming API which is in alpha test
> phase.http://apiwiki.twitter.com/Streaming-API-Documentation
> Please read the above document from top to bottom carefully before you
> dive into TwitterStream.
> Note that the Streaming API is subject to change.
>
> Release Notes - Twitter4J - Version 2.0.4 - HTML format
> Bug
> [TFJ-142] - DocumentBuilder.parse is not thread safe :
> NullPointerException at AbstractDOMParser.startElement
> [TFJ-145] - twitter4j.http.Response shouldn't be Serializable
> [TFJ-146] - getUserDetail should be invocable from unauthenticated
> Twitter instances
> [TFJ-149] - OAuth fails with "Invalid / expired Token" after May 13,
> 2009
> Improvement
> [TFJ-147] - retire ExtendedUser and UserWithStatus
> New Feature
> [TFJ-139] - streaming API support beta
> [TFJ-144] - Add methods to retrieve blocking information
> Task
> [TFJ-143] - Deprecation of following and notification elements
>
> Have fun!
> --
> Yusuke Yamamoto
> [email protected]
> follow me athttp://twitter.com/yusukeyamamoto