Twitter4Jとは?
Twitter4J は Twitter API の Java ラッパです。
Twitter4J を使うと JSON や HTTP に詳しくなくても容易に Twitter とインタラクトするアプリケーションを書くことが出来ます。Twitter4J は Twitter 非公式のライブラリです。
✔ 100% Pure Java - works on any Java Platform version 5 or later
✔ Android やGoogle App Engine上でも動作します
✔ 依存なし : 追加の jar ファイルなどは必要ありません
✔ OAuth に対応
✔ デフォルトで gzip をサポートするため高速
✔ Twitter API 1.1に完全対応
システム要件
OS: Java をサポートする Windows または Unix 系 OS
JVM: Java 5 またはそれ以降
使い方
twitter4j-core-4.0.4.jar をクラスパスに通して、好きなメソッドを呼び出してください。
Java が分かっていれば JavaDoc を見るのが早いです。
twitter4j.Twitter クラスが最初に見るべきインターフェースです。
ダウンロード
・最新安定バージョン

twitter4j-4.0.4.zip / JavaDoc
・最新スナップショットビルド
twitter4j-4.0.5-SNAPSHOT.zip / JavaDoc
ソースコード
アーカイブにはソースコードが含まれています。
プロジェクトのリポジトリには以下の URL からアクセスできます。
github: http://github.com/yusuke/twitter4j/または以下のように git を使って最新のソースコードをチェックアウトすることもできます。
git clone git://github.com/yusuke/twitter4j.git
Maven 統合
Maven を使っている場合、pom.xml に以下のように記載すればご自身のプロジェクトに twitter4j の最新安定ビルドを簡単に統合できます。
<dependencies>最新Snapshot build を使いたい場合、pom.xml に以下のように記載してください。
<dependency>
<groupId>org.twitter4j</groupId>
<artifactId>twitter4j-core</artifactId>
<version>[4.0,)</version>
</dependency>
...
</dependencies>
<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>
メーリングリスト
Twitter4J に関する質問、バグレポート、リクエストなどありましたら以下のメーリングリストにお気軽にどうぞ。
|
|
| Twitter4J Jに参加 |
| このグループにアクセス |
|
|
| Subscribe to Twitter4J |
| Visit this group |
ライセンス
Twitter4J は 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 は JSON レスポンスの解析のため JSON.org のソフトウェアを含んでいます。JSON.org のソフトウェアのライセンスについてはThe JSON Licenseをご覧ください。寄付
Twitter4J はどなたでも商用、非商用にかかわらず無償でご利用いただけます。
もし Twitter4J があなたの生活を豊かにしてくれると感じたならば、寄付もご検討ください。
現在の所、寄付金は主にサーバの電気代に利用されています。