English | Japanese | Korean

 



Introduction

Twitter4J is an unofficial Java library for the Twitter API.
With Twitter4J, you can easily integrate your Java application with the Twitter service. Twitter4J is an unofficial library.

Twitter4J is featuring:
100% Pure Java - works on any Java Platform version 5 or later
Android platform and Google App Engine ready
Zero dependency : No additional jars required
Built-in OAuth support
Out-of-the-box gzip support
100% Twitter API 1.1 compatible

System Requirements

OS: Windows or any flavor of Unix that supports Java.
JVM: Java 5 or later

How To Use

Just add twitter4j-core-4.0.1.jar to your application classpath.
If you are familiar with Java language, looking into the JavaDoc should be the shortest way for you to get started.
twitter4j.Twitter interface is the one you may want to look at first.

Download

・Latest stable version
Download
twitter4j-4.0.1.zip / JavaDoc

・Latest snapshot build
Download
twitter4j-4.0.2-SNAPSHOT.zip / JavaDoc

Source Code

The archive contains jar file along with source code.
You can also browse the project repository at:

github: http://github.com/yusuke/twitter4j/
Or you can check out the latest source code anonymously as follows:
git clone git://github.com/yusuke/twitter4j.git

Maven Integration

You can integrate the latest Twitter4J build easily by just including the following lines in your pom.xml.

   <dependencies>
<dependency>
<groupId>org.twitter4j</groupId>
<artifactId>twitter4j-core</artifactId>
<version>[4.0,)</version>
</dependency>
...
</dependencies>
If you prefer using the latest snapshot build, include the following lines to your pom.xml.
   <repositories>
      <repository>
         <id>twitter4j.org</id>
         <name>twitter4j.org Repository</name>
         <url>http://twitter4j.org/maven2</url>
         <releases>
            <enabled>true</enabled>
         </releases>
         <snapshots>
            <enabled>true</enabled>
         </snapshots>
      </repository>
   </repositories>
   <dependencies>
      <dependency>
         <groupId>org.twitter4j</groupId>
         <artifactId>twitter4j-core</artifactId>
         <version>[4.0,)</version>
      </dependency>
   </dependencies>

Mailing list

Any question, comment, bug report, feature request or patch is highly welcomed.
Feel free to post your comments to the mailing list.
Google Groups
Subscribe to Twitter4J
Email:
Visit this group

License

Twitter4J is released under Apache License 2.0.


Copyright 2007 Yusuke Yamamoto

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
Distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Twitter4J includes software from JSON.org to parse JSON response from the Twitter API. You can see the license term at The JSON License.

Donation

Twitter4J is an opensourced software and free of charge.
You can use Twitter4J freely for any commercial and non-commercial projects.
If you feel Twitter4J makes your life easier, please do consider making a donation!