とあるセクシーなデータ分析官

を目指す渋谷で働くソーシャルゲーム分析者の卵

TwitteAPIをPHPで扱うためのservices_twitterライブラリの簡単なまとめ

http://labs.transrain.net/products/services_twitter/


↑こちらに一応APIリファレンスはありますが、
各種メソッドの説明が所々虫食いになっているので、説明がついてない分の補完

メソッド:
 getFriends()
  //自分がフォローしている人のデータと最近の発言などを取得

返り値
    [0] => Array
        (
            [profile_background_tile] => 1
            [description] => ラブレター配信中!恋ポスのポスコだよ。いつだってみんなの恋を応援中!
            [profile_background_color] => FF6699
            [followers_count] => 7
            [url] => http://koipos.kayac.jp/
            [status] => Array
                (
                    [favorited] => 
                    [in_reply_to_user_id] => 
                    [in_reply_to_screen_name] => 
                    [source] => API
                    [created_at] => Fri Sep 25 12:00:02 +0000 2009
                    [truncated] => 
                    [in_reply_to_status_id] => 
                    [id] => 4366672278
                    [text] => T.Tサンへ まだ大好きです。
                )

            [following] => 1
            [time_zone] => Hawaii
            [favourites_count] => 0
            [verified] => 
            [friends_count] => 4
            [profile_sidebar_fill_color] => E5507E
            [profile_image_url] => http://a3.twimg.com/profile_images/337619561/koipos_normal.png
            [created_at] => Wed Jul 29 11:37:17 +0000 2009
            [notifications] => 
            [profile_sidebar_border_color] => CC3366
            [screen_name] => koipos
            [protected] => 
            [profile_text_color] => 362720
            [location] => 恋ポス
            [name] => ぽすこ-恋ポス-
            [profile_background_image_url] => http://s.twimg.com/a/1251747949/images/themes/theme11/bg.gif
            [id] => 61173941
            [statuses_count] => 37
            [utc_offset] => -36000
            [profile_link_color] => B40B43
        )

※ユーザーごとに直近の発言とか取れるのが便利かも
メソッド:
 getFollowers()
  //自分をフォローしている人のデータと最近の発言などを取得

返り値
 getFriends()と同じ
メソッド:
  getUserShow('koipos')
  //特定の相手のデータを最新の発言などを取得

返り値
 getFriends()と同じ

メソッド:
  setUpdate('てすてす')
  //発言する

返り値
 無し