<< May 19, 2009 | Home | May 21, 2009 >>

Twitter4J 2.0.4 released - added Streaming API support

Twitter4J is an open-sourced, mavenized and Google App Engine safe Java library for the Twitter API which is released under the BSD license.

Twitter4J 2.0.4 is now available for download.



This version is also available in the Maven central repository.
http://repo1.maven.org/maven2/net/homeip/yusuke/twitter4j/
You can also use the snapshot repository.
http://yusuke.homeip.net/maven2/net/homeip/yusuke/twitter4j/

All applications using version 2.0.1 or earlier are strongly suggested to migrate to this release in order to take advantage of the gzip compression feature introduced in version 2.0.2.

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 instead of ExtendedUser, or List:
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
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.

Here is the complete list of fixes included in version 2.0.4
Release Notes - Twitter4J - Version 2.0.4

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