Twitter API
Twitterをプログラムから操作するには、Twitterが提供するAPIを利用します。
Twitter APIに関するドキュメントは、「API Documentation - Twitter Development Talk | Google グループ」にその情報があるので、それを参考にすると良いです。
最新のAPIが追加されたときなどは、このドキュメントもアップデートされるので要チェックです。
API概要
APIで個人を識別するための認証方法には、BASIC認証を用います。
また、APIからのレスポンスとしては、HTTPのステータスコードと似たような返答が返ってきます。
扱えるデータのフォーマットは、XML、JSON、RSS、Atomがあります。
実行回数の制限は、60分間に70回利用できます。
APIが提供する機能リスト
2008年2月29日現在のAPIリストです。
Status Methods
- public_timeline
- friends_timeline
- user_timeline
- show
- update
- replies
- destroy
User Methods
- friends
- followers
- featured
- show
Direct Message Methods
- direct_messages
- sent
- new
- destroy
Friendship Methods
- create
- destroy
Account Methods
- verify_credentials
- end_session
- archive
Favorite Methods
- favorites
- create
- destroy
Notification Methods
- follow
- leave