<< Previous | Home | Next >>

Twitter4J 2.0.2 released - adding trends api support, gzip support for faster performance

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.2 is now available for download.



This version is also available in the Maven central repository.
http://repo1.maven.org/maven2/net/homeip/yusuke/twitter4j/
Until then, you may use the snapshot repository instead.
http://yusuke.homeip.net/maven2/net/homeip/yusuke/twitter4j/

All applications using prior versions are strongly suggested to migrate to this release in order to take advantage of the gzip compression feature which is twitter.com friendly.

Major features introduced in this release:
- trends API support
Finally Twitter4J supports trends APIs which tells you what is hot in twitter.com.
http://yusuke.homeip.net/twitter4j/en/api-support.html#Search%20API%20Methods
- gzip support
As of Twitter4J 2.0.2, it interacts with twitter.com using gzip compression method.
No additional configuration, nor coding is required.
T4J will start talking to twitter.com in faster and network/twitter.com friendly manner by just using Twitter4J 2.0.2.

Here are the list of fixes included in version 2.0.2
Release Notes - Twitter4J - Version 2.0.2

Improvement

  • [TFJ-131] - Use gzip encoding to improve performance and network bandwidth utilization
  • [TFJ-132] - handle http response codes correctly to reduce unnecessary retries

New Feature

  • [TFJ-120] - include rate limit status in TwitterResponse
  • [TFJ-123] - support trends methods
  • [TFJ-124] - support update_profile method
  • [TFJ-133] - need a way to shutdown async thread gracefully

Twitter4J 2.0.1 released, confirmed Google App Engine compatibility

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

Twitter4J 2.0.1 is now available for download.



This version is already available in the Maven central repository.
http://repo1.maven.org/maven2/net/homeip/yusuke/twitter4j/


Here are the list of fixes included in version 2.0.1.
Release Notes - Twitter4J - Version 2.0.1

Improvement

  • [TFJ-110] - remove unnecessary synchronized modifier for better multi-thread performance
  • [TFJ-111] - support page and max_id parameters with getUserTimeline()
  • [TFJ-112] - introduce pagenation control class which replaces page, count, and since_id parameters
  • [TFJ-121] - support follow parameter with create() method
  • [TFJ-122] - need a way to get AccessToken in a stateless context where RequestToken instance is not available
  • [TFJ-126] - dispatcher thread should be held statically
  • [TFJ-130] - fix method name inconsistencies

New Feature

  • [TFJ-117] - support statuses/mentions
  • [TFJ-125] - introduce a System property that specifies number of dispatcher thread
  • [TFJ-128] - support pagination on social graph methods
  • [TFJ-129] - introduce async search method

Task

  • [TFJ-119] - rename follow() / leave() to enableNotification() / disableNotification(), create() / destoy() to createFriendship() / destroyFriendship()

Twitter4J 2.0.0 released, now officially supports OAuth authorization scheme

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

Twitter4J 2.0.0 is now available for download.



This version is already available in the Maven central repository.
http://repo1.maven.org/maven2/net/homeip/yusuke/twitter4j/

Compatibility note:
- OAuth support
Now Twitter4J supports OAuth authorization scheme.
You can still use userid / password combination to authenticate the user, but migrating to OAuth scheme is encouraged by the Twitter team.
Currently the usage of OAuth support is poorly documented.
Please refer twitter4j.examples.OAuthUpdate for now.

- deprecation of "Date since" parameter
All methods take "Date since" are now deprecated.
It is suggested by the Twitter team to use "since_id" where you can specify the oldest id of the status in the response.

- deprecation of UserWithStatus class
Due to the change of the Twitter API, all User information includes the latest status of the user and UserWithStatus is replaced by ExtendedUser.
Now getUserDetail() / verifyCredentials() / getUserDetail() return ExtendedUser.
ExtendedUser is extending UserWithStatus for now and applications are still compatible at the source code level.

- verifyCredentials now returns ExtendedUser, not boolean
Now verifyCredentials() returns Extended User information as documented in the Twitter REST API doc.
Accordingly, getAuthenticatedUser() is now deprecated.

Here are the list of fixes included in version 2.0.0.
Release Notes - Twitter4J - Version 2.0.0

Bug

  • [TFJ-95] - getFriends(String id) and getFriends(String id, int page) return authenticating user's friends' timeline instead

Improvement

  • [TFJ-103] - User element is out of sync
  • [TFJ-104] - UserWithStatus element is out of sync
  • [TFJ-105] - show method should return ExtendedUser instead of Status
  • [TFJ-106] - unescape HTML entities
  • [TFJ-108] - deprecate QueryResult#getTotal()
  • [TFJ-114] - verifyCredentials() should return extended user information

New Feature

  • [TFJ-49] - support update_profile_colors method
  • [TFJ-75] - support social graph methods
  • [TFJ-83] - OAuth support
  • [TFJ-96] - support since_id with getUserTimeline
  • [TFJ-97] - support since_id with getDirectMessages and getSentDirectMessages

Twitter4J now supports OAuth authentication scheme

The time has come.
Twitter4J now supports OAuth authentication scheme in the latest build.
It's not available in the central repo yet and you can download the
latest build at :
http://yusuke.homeip.net/hudson/job/Twitter4J/lastBuild/net.homeip.yusuke$twitter4j/



Please give it a try and let me know how it goes at Twitter4J list.
The use of OAuth feature in Twitter4J is not well document at this time.
OAuthUpdate should be the best example for now.
http://yusuke.homeip.net/fisheye/browse/svn/twitter4j/trunk/src/main/java/twitter4j/examples/OAuthUpdate.java?r=210

Note that you need to register your application at twitter.com before
you dive into the OAuth feature.
http://twitter.com/oauth_clients/new

See also:
- Quick and Dirty Twitter oAuth Manual
http://docs.google.com/Doc?id=ajmd9vnthtq9_64ctxkqvfm
- OAuth FAQ
http://apiwiki.twitter.com/OAuth-FAQ


Twitter4J 1.1.8 released

Twitter4J 1.1.8 is now available for download.


This version is already available in the Maven central repository.
Here are the list of fixes included in version 1.1.8.
Recompilation of your project is suggested before you update your twitter4j library.
Release Notes - Twitter4J - Version 1.1.8

Bug

  • [TFJ-91] - null pointer exception getting user detail on users with no statuses
  • [TFJ-99] - getAuthenticatedUser() fails with TwitterException if login is done with email address and password
  • [TFJ-100] - Twitter.getUserDetail() fails with java.lang.NullPointerException
  • [TFJ-101] - getChildText() throws NullPointerException randomly

Improvement

  • [TFJ-86] - send User-Agent header
  • [TFJ-89] - System properties should win explicit setter methods
  • [TFJ-92] - introduce System properties override userid and password

New Feature

  • [TFJ-90] - support since_id with getFriendsTimeline() and getReplies()

Task

  • [TFJ-84] - add license term to each source file
  • [TFJ-85] - add JDK1.4.2 support

Sakasa-Fuji in the sky

It is no doubt that Mt. Fuji is the most beautiful mountain in Japan. Therefore many photographers, and painters love Mt. Fuji.
There is a quite popular composition of the mountain which is called "逆さ富士"(Sakasa-Fuji) - meaning "inverted Fuji" in Japanese.
There are five lakes near Mt. Fuji and you can see inverted, or reflected image of the mountain on the water surface when you are walking beside those lakes.
- Google Image Search - Sakasa-fuji

On Jan 2nd, I took two phenomenal Sakasa-fuji pictures.


Mt. Fuji with its silhouette

In this picture, a projected outline of the mountain can be seen in the atmosphere.


Sakasa-Fuji in the sky

You can see an upside-down shadow of the mountain on the cloud.

How mystic it is!

Twitter4J 1.1.4 released

Twitter4J 1.1.4 is now available for download.
http://yusuke.homeip.net/twitter4j/en/index.html#download

Projects using getUserDetail() need to apply this version in order to avoid NPE with protected users(TFJ-70).
This version will also be available in the Maven central repository in 24 hours.
Here are the list of fixes included in version 1.1.4.
Recompilation of your project is suggested before you update your twitter4j jar file.

Bug

  • [TFJ-70] - getting a protected user profile causes a NullPointerException

Improvement

  • [TFJ-69] - some async methods are declared to throw TwitterException mistakenly

New Feature

  • [TFJ-48] - support update_delivery_device method
  • [TFJ-52] - support exists method
  • [TFJ-53] - support rate_limit_status method