hatenahaiku4j
クラス HatenaHaikuAPI

java.lang.Object
  上位を拡張 hatenahaiku4j.HatenaHaikuAPIWithoutAuth
      上位を拡張 hatenahaiku4j.HatenaHaikuAPI

public class HatenaHaikuAPI
extends HatenaHaikuAPIWithoutAuth

はてなハイクAPIラッピングクラス(認証あり)

作成者:
fumokmm
関連項目:
はてなハイクAPI

コンストラクタの概要
HatenaHaikuAPI(LoginUser loginUser)
          コンストラクタ。
 
メソッドの概要
 Status addStar(java.lang.String statusId)
          指定したエントリーにスターを一つ追加します。
 void changeLoginUser(LoginUser loginUser)
          ログインユーザを切り替えます。
 Status deleteEntry(java.lang.String statusId)
          指定したステータスIDのエントリーを削除します。
 Status deleteStar(java.lang.String statusId)
          指定したエントリーのスターを一つ減らします。
 Status entry(java.lang.String text)
          新しくエントリを投稿します。
 Status entry(java.lang.String keyword, java.lang.String text)
          新しくエントリを投稿します。
 Status entry(java.lang.String keyword, java.lang.String text, java.io.File file)
          新しくエントリを投稿します。
 Keyword followKeyword(java.lang.String keyword)
          キーワードをフォローします。
 User followUser(java.lang.String userId)
          ユーザをフォローします。
 java.util.List<User> getFollowersList()
          認証したユーザをフォローしているユーザのリストを取得します。
 java.util.List<Keyword> getFollowingKeywordList()
          認証したユーザがフォローしているキーワードのリストを取得します。
 java.util.List<User> getFollowingList()
          認証したユーザがフォローしているユーザのリストを100件取得します。
 java.util.List<User> getFollowingList(int page)
          認証したユーザがフォローしているユーザのリストを100件取得します。
 java.util.List<Status> getFriendsTimeline()
          認証したユーザのフレンドタイムラインを取得します。
 java.util.List<Status> getFriendsTimeline(int page)
          認証したユーザのフレンドタイムラインを取得します。
 java.util.List<Status> getFriendsTimeline(int page, int count)
          認証したユーザのフレンドタイムラインを取得します。
 java.util.List<Status> getFriendsTimeline(int page, int count, java.util.Date since)
          認証したユーザのフレンドタイムラインを取得します。
 java.util.List<Status> getUserTimeline()
          認証したユーザのユーザタイムラインを取得します。
 java.util.List<Status> getUserTimeline(int page)
          認証したユーザのユーザタイムラインを取得します。
 java.util.List<Status> getUserTimeline(int page, int count)
          認証したユーザのユーザタイムラインを取得します。
 java.util.List<Status> getUserTimeline(int page, int count, java.util.Date since)
          認証したユーザのユーザタイムラインを取得します。
 Keyword relateKeyword(java.lang.String keyword1, java.lang.String keyword2)
          関連キーワードを設定します。
 Status reply(java.lang.String inReplyToStatusId, java.lang.String text)
          新しく返信エントリを投稿します。
 Status reply(java.lang.String inReplyToStatusId, java.lang.String text, java.io.File file)
          新しく返信エントリを投稿します。
 Keyword unfollowKeyword(java.lang.String keyword)
          キーワードのフォローをやめます。
 User unfollowUser(java.lang.String userId)
          ユーザのフォローをやめます。
 Keyword unrelateKeyword(java.lang.String keyword1, java.lang.String keyword2)
          関連キーワードを解除します。
 
クラス hatenahaiku4j.HatenaHaikuAPIWithoutAuth から継承されたメソッド
getAlbumTimeline, getAlbumTimeline, getAlbumTimeline, getAlbumTimeline, getAlbumTimeline, getAlbumTimeline, getAlbumTimeline, getAlbumTimeline, getFollowersList, getFollowingKeywordList, getFollowingList, getFollowingList, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getHotKeywordList, getKeyword, getKeywordList, getKeywordList, getKeywordList, getKeywordTimeline, getKeywordTimeline, getKeywordTimeline, getKeywordTimeline, getPublicTimeline, getPublicTimeline, getPublicTimeline, getPublicTimeline, getStatus, getUser, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

HatenaHaikuAPI

public HatenaHaikuAPI(LoginUser loginUser)
コンストラクタ。

パラメータ:
loginUser - ログインユーザ
メソッドの詳細

changeLoginUser

public void changeLoginUser(LoginUser loginUser)
ログインユーザを切り替えます。

パラメータ:
loginUser - ログインユーザ

getFriendsTimeline

public java.util.List<Status> getFriendsTimeline()
                                          throws HatenaHaikuException
認証したユーザのフレンドタイムラインを取得します。最新ページを20件取得します。
http://h.hatena.ne.jp/api/statuses/friends_timeline.xml

戻り値:
認証したユーザのフレンドタイムライン
例外:
HatenaHaikuException
関連項目:
statuses/friends_timeline

getFriendsTimeline

public java.util.List<Status> getFriendsTimeline(int page)
                                          throws HatenaHaikuException
認証したユーザのフレンドタイムラインを取得します。取得件数は20件です。
http://h.hatena.ne.jp/api/statuses/friends_timeline.xml

パラメータ:
page - 取得するページです。最大数は100です。
戻り値:
認証したユーザのフレンドタイムライン
例外:
HatenaHaikuException
関連項目:
statuses/friends_timeline

getFriendsTimeline

public java.util.List<Status> getFriendsTimeline(int page,
                                                 int count)
                                          throws HatenaHaikuException
認証したユーザのフレンドタイムラインを取得します。
http://h.hatena.ne.jp/api/statuses/friends_timeline.xml

パラメータ:
page - 取得するページです。最大数は100です。
count - 取得数を指定します。最大数は 200 です。
戻り値:
認証したユーザのフレンドタイムライン
例外:
HatenaHaikuException
関連項目:
statuses/friends_timeline

getFriendsTimeline

public java.util.List<Status> getFriendsTimeline(int page,
                                                 int count,
                                                 java.util.Date since)
                                          throws HatenaHaikuException
認証したユーザのフレンドタイムラインを取得します。
http://h.hatena.ne.jp/api/statuses/friends_timeline.xml

パラメータ:
page - 取得するページです。最大数は100です。
count - 取得数を指定します。最大数は 200 です。
since - その日時よりも新しい投稿のみに絞り込むための日時を指定します。
戻り値:
認証したユーザのフレンドタイムライン
例外:
HatenaHaikuException
関連項目:
statuses/friends_timeline

getUserTimeline

public java.util.List<Status> getUserTimeline()
                                       throws HatenaHaikuException
認証したユーザのユーザタイムラインを取得します。最新ページを20件取得します。
http://h.hatena.ne.jp/api/statuses/user_timeline.xml

戻り値:
認証したユーザのユーザタイムライン
例外:
HatenaHaikuException
関連項目:
statuses/user_timeline

getUserTimeline

public java.util.List<Status> getUserTimeline(int page)
                                       throws HatenaHaikuException
認証したユーザのユーザタイムラインを取得します。取得件数は20件です。
http://h.hatena.ne.jp/api/statuses/user_timeline.xml

パラメータ:
page - 取得するページです。最大数は100です。
戻り値:
認証したユーザのユーザタイムライン
例外:
HatenaHaikuException
関連項目:
statuses/user_timeline

getUserTimeline

public java.util.List<Status> getUserTimeline(int page,
                                              int count)
                                       throws HatenaHaikuException
認証したユーザのユーザタイムラインを取得します。
http://h.hatena.ne.jp/api/statuses/user_timeline.xml

パラメータ:
page - 取得するページです。最大数は100です。
count - 取得数を指定します。最大数は 200 です。
戻り値:
認証したユーザのユーザタイムライン
例外:
HatenaHaikuException
関連項目:
statuses/user_timeline

getUserTimeline

public java.util.List<Status> getUserTimeline(int page,
                                              int count,
                                              java.util.Date since)
                                       throws HatenaHaikuException
認証したユーザのユーザタイムラインを取得します。
http://h.hatena.ne.jp/api/statuses/user_timeline.xml

パラメータ:
page - 取得するページです。最大数は100です。
count - 取得数を指定します。最大数は 200 です。
since - その日時よりも新しい投稿のみに絞り込むための日時を指定します。
戻り値:
認証したユーザのユーザタイムライン
例外:
HatenaHaikuException
関連項目:
statuses/user_timeline

entry

public Status entry(java.lang.String text)
             throws HatenaHaikuException
新しくエントリを投稿します。(ログインユーザのプロフィールページに投稿されます)

パラメータ:
text - 投稿内容
戻り値:
投稿結果のステータス情報
例外:
HatenaHaikuException

entry

public Status entry(java.lang.String keyword,
                    java.lang.String text)
             throws HatenaHaikuException
新しくエントリを投稿します。

パラメータ:
keyword - キーワード
text - 投稿内容
戻り値:
投稿結果のステータス情報
例外:
HatenaHaikuException

entry

public Status entry(java.lang.String keyword,
                    java.lang.String text,
                    java.io.File file)
             throws HatenaHaikuException
新しくエントリを投稿します。画像付きでエントリします。

パラメータ:
text - 投稿内容
file - 画像ファイル
戻り値:
投稿結果のステータス情報
例外:
HatenaHaikuException

reply

public Status reply(java.lang.String inReplyToStatusId,
                    java.lang.String text)
             throws HatenaHaikuException
新しく返信エントリを投稿します。

パラメータ:
text - 投稿内容
戻り値:
投稿結果のステータス情報
例外:
HatenaHaikuException

reply

public Status reply(java.lang.String inReplyToStatusId,
                    java.lang.String text,
                    java.io.File file)
             throws HatenaHaikuException
新しく返信エントリを投稿します。画像付きでエントリします。

パラメータ:
text - 投稿内容
file - 画像ファイル
戻り値:
投稿結果のステータス情報
例外:
HatenaHaikuException

deleteEntry

public Status deleteEntry(java.lang.String statusId)
                   throws HatenaHaikuException
指定したステータスIDのエントリーを削除します。
http://h.hatena.ne.jp/api/statuses/destroy/ステータスID.xml

パラメータ:
statusId - ステータスID
戻り値:
削除したステータス情報
例外:
HatenaHaikuException
関連項目:
statuses/destroy

addStar

public Status addStar(java.lang.String statusId)
               throws HatenaHaikuException
指定したエントリーにスターを一つ追加します。
http://h.hatena.ne.jp/api/favorites/create/ステータスID.xml

パラメータ:
statusId - ステータスID
戻り値:
スターを一つ追加した結果のステータス情報
例外:
HatenaHaikuException
関連項目:
favorites/create

deleteStar

public Status deleteStar(java.lang.String statusId)
                  throws HatenaHaikuException
指定したエントリーのスターを一つ減らします。
http://h.hatena.ne.jp/api/favorites/destroy/ステータスID.xml

パラメータ:
statusId - ステータスID
戻り値:
スターを一つ減らした結果のステータス情報
例外:
HatenaHaikuException
関連項目:
favorites/destroy

getFollowingList

public java.util.List<User> getFollowingList()
                                      throws HatenaHaikuException
認証したユーザがフォローしているユーザのリストを100件取得します。(1ページ目)
http://h.hatena.ne.jp/api/statuses/friends.xml

戻り値:
認証したユーザがフォローしているユーザのリスト(1ページ目)
例外:
HatenaHaikuException
関連項目:
statuses/friends

getFollowingList

public java.util.List<User> getFollowingList(int page)
                                      throws HatenaHaikuException
認証したユーザがフォローしているユーザのリストを100件取得します。(指定ページ)
http://h.hatena.ne.jp/api/statuses/friends.xml&page=ページ

パラメータ:
page - ページ
戻り値:
認証したユーザがフォローしているユーザのリスト(指定ページ)
例外:
HatenaHaikuException
関連項目:
statuses/friends

getFollowersList

public java.util.List<User> getFollowersList()
                                      throws HatenaHaikuException
認証したユーザをフォローしているユーザのリストを取得します。
http://h.hatena.ne.jp/api/statuses/followers.xml

戻り値:
認証したユーザをフォローしているユーザのリスト
例外:
HatenaHaikuException
関連項目:
statuses/followers

followUser

public User followUser(java.lang.String userId)
                throws HatenaHaikuException
ユーザをフォローします。
http://h.hatena.ne.jp/api/friendships/create/ユーザID.xml

パラメータ:
userId - ユーザID
戻り値:
フォローしたユーザ情報
例外:
HatenaHaikuException
関連項目:
friendships/create

unfollowUser

public User unfollowUser(java.lang.String userId)
                  throws HatenaHaikuException
ユーザのフォローをやめます。
http://h.hatena.ne.jp/api/friendships/destroy/ユーザID.xml

パラメータ:
userId - ユーザID
戻り値:
フォローをやめたユーザ情報
例外:
HatenaHaikuException
関連項目:
friendships/destroy

getFollowingKeywordList

public java.util.List<Keyword> getFollowingKeywordList()
                                                throws HatenaHaikuException
認証したユーザがフォローしているキーワードのリストを取得します。
http://h.hatena.ne.jp/api/statuses/keywords.xml

戻り値:
認証したユーザがフォローしているキーワードリスト
例外:
HatenaHaikuException
関連項目:
statuses/keywords

followKeyword

public Keyword followKeyword(java.lang.String keyword)
                      throws HatenaHaikuException
キーワードをフォローします。
http://h.hatena.ne.jp/api/keywords/create/キーワード.xml

パラメータ:
keyword - キーワード
戻り値:
フォローしたキーワード情報
例外:
HatenaHaikuException
関連項目:
keywords/create

unfollowKeyword

public Keyword unfollowKeyword(java.lang.String keyword)
                        throws HatenaHaikuException
キーワードのフォローをやめます。
http://h.hatena.ne.jp/api/keywords/destroy/キーワード.xml

パラメータ:
keyword - キーワード
戻り値:
フォローをやめたキーワード情報
例外:
HatenaHaikuException
関連項目:
keywords/destroy

relateKeyword

public Keyword relateKeyword(java.lang.String keyword1,
                             java.lang.String keyword2)
                      throws HatenaHaikuException
関連キーワードを設定します。
http://h.hatena.ne.jp/api/keywords/relation/create.xml

パラメータ:
keyword1 - 設定する対象のキーワード1
keyword2 - 設定する対象のキーワード2
戻り値:
関連キーワードを設定後のキーワード1のキーワード情報
例外:
HatenaHaikuException
関連項目:
keywords/relation/create

unrelateKeyword

public Keyword unrelateKeyword(java.lang.String keyword1,
                               java.lang.String keyword2)
                        throws HatenaHaikuException
関連キーワードを解除します。
関連キーワードの設定の削除は自分が設定したものに限られます。
http://h.hatena.ne.jp/api/keywords/relation/destroy.xml

パラメータ:
keyword1 - 解除する対象のキーワード1
keyword2 - 解除する対象のキーワード2
戻り値:
関連キーワードを解除後のキーワード1のキーワード情報
例外:
HatenaHaikuException
関連項目:
keywords/relation/destroy