2013年9月29日日曜日

GET statuses/mentions_timeline

GET statuses/mentions_timeline

<?php
include_once('../oauth/start.php');
/*
Timelines
GET statuses/mentions_timeline
https://api.twitter.com/1.1/statuses/mentions_timeline.json
HTTP Methods GET

認証ユーザーへのつぶやきを示す@ユーザー名を含むステータス情報(各つぶやきとそれに関連する諸々の情報)の最新20件
(count引数指定で最大200件)を返します。返されたタイムラインは、Twitter.com 上の mentions(@関連) の表示と
同じです。誰かが投稿した、自分へに対するつぶやき「@自分」を含む「メンションつぶやき」一覧を取得します。mentions(@関連)
 の一覧と同じです。

このメソッドは最大800件までステータス情報を返します。include_rts が true または 1 になっていれば、リツイートも含めて
最大800件のステータス情報を返します。

このメソッドは、include_rtsパラメータが設定されていない限り、XMLとJSON形式において、リツイートのつぶやきは含まれません。
RSSとAtom形式の場合は、常にステータス情報にリツイートが含まれます。

http://www.tryphp.net/2012/01/05/phpapptwitter-mentions/
http://twinavi.jp/guide/section/twitter/glossary/メンション(Mentions)とは

 */

echo '<pre>';
$apiurl='https://api.twitter.com/1.1/statuses/mentions_timeline.json';
$HTTP_Methods='GET';
$paras['count']='5'; //取得結果数
$paras['page']='5'; //取得ページ数
$paras['since_id']='';
$paras['max_id']='';
$paras['trim_user']='true'; //ユーザー情報含まない
$paras['contributor_details']='';
$paras['include_entities']='false'; //実体含まない
$x->twoauth($HTTP_Methods,$apiurl,$paras);
//$x->send_curl();
print_r($x->send_curl());

?>





Array
(
    [0] => stdClass Object
        (
            [created_at] => Mon Aug 05 22:46:55 +0000 2013
            [id] => 3.64517905771E+17
            [id_str] => 364517905771139072
            [text] => @hei6321 雨?
            [source] => Tweetbot for iOS
            [truncated] => 
            [in_reply_to_status_id] => 3.6451560366E+17
            [in_reply_to_status_id_str] => 364515603660292096
            [in_reply_to_user_id] => 371259452
            [in_reply_to_user_id_str] => 371259452
            [in_reply_to_screen_name] => hei6321
            [user] => stdClass Object
                (
                    [id] => 44096288
                    [id_str] => 44096288
                )

            [geo] => 
            [coordinates] => 
            [place] => 
            [contributors] => 
            [retweet_count] => 0
            [favorite_count] => 0
            [favorited] => 
            [retweeted] => 
            [lang] => ja
        )

    [1] => stdClass Object
        (
            [created_at] => Fri Aug 02 11:14:38 +0000 2013
            [id] => 3.63256521582E+17
            [id_str] => 363256521582313472
            [text] => 2回目以降はほんま面倒ですよ。 RT @hei6321
            [source] => web
            [truncated] => 
            [in_reply_to_status_id] => 3.632558533E+17
            [in_reply_to_status_id_str] => 363255853299666946
            [in_reply_to_user_id] => 371259452
            [in_reply_to_user_id_str] => 371259452
            [in_reply_to_screen_name] => hei6321
            [user] => stdClass Object
                (
                    [id] => 248336266
                    [id_str] => 248336266
                )

            [geo] => 
            [coordinates] => 
            [place] => 
            [contributors] => 
            [retweet_count] => 1
            [favorite_count] => 0
            [favorited] => 
            [retweeted] => 
            [lang] => ja
        )

    [2] => stdClass Object
        (
            [created_at] => Fri Aug 02 11:11:11 +0000 2013
            [id] => 3.63255655404E+17
            [id_str] => 363255655404023809
            [text] => @hei6321 それは確かに!
            [source] => Tweetbot for iOS
            [truncated] => 
            [in_reply_to_status_id] => 3.63253881893E+17
            [in_reply_to_status_id_str] => 363253881892909057
            [in_reply_to_user_id] => 371259452
            [in_reply_to_user_id_str] => 371259452
            [in_reply_to_screen_name] => hei6321
            [user] => stdClass Object
                (
                    [id] => 44096288
                    [id_str] => 44096288
                )

            [geo] => 
            [coordinates] => 
            [place] => 
            [contributors] => 
            [retweet_count] => 0
            [favorite_count] => 0
            [favorited] => 
            [retweeted] => 
            [lang] => ja
        )

    [3] => stdClass Object
        (
            [created_at] => Thu Jul 25 23:30:44 +0000 2013
            [id] => 3.60542665488E+17
            [id_str] => 360542665487560704
            [text] => @hei6321 あらっ、早起きw
            [source] => Tweetbot for iOS
            [truncated] => 
            [in_reply_to_status_id] => 3.60538782816E+17
            [in_reply_to_status_id_str] => 360538782816161792
            [in_reply_to_user_id] => 371259452
            [in_reply_to_user_id_str] => 371259452
            [in_reply_to_screen_name] => hei6321
            [user] => stdClass Object
                (
                    [id] => 44096288
                    [id_str] => 44096288
                )

            [geo] => 
            [coordinates] => 
            [place] => 
            [contributors] => 
            [retweet_count] => 0
            [favorite_count] => 0
            [favorited] => 
            [retweeted] => 
            [lang] => ja
        )

    [4] => stdClass Object
        (
            [created_at] => Wed Jul 24 11:50:42 +0000 2013
            [id] => 3.60004108067E+17
            [id_str] => 360004108066885634
            [text] => @hei6321 今日も一日お疲れ様!
            [source] => Tweetbot for iOS
            [truncated] => 
            [in_reply_to_status_id] => 3.60001300312E+17
            [in_reply_to_status_id_str] => 360001300311719936
            [in_reply_to_user_id] => 371259452
            [in_reply_to_user_id_str] => 371259452
            [in_reply_to_screen_name] => hei6321
            [user] => stdClass Object
                (
                    [id] => 44096288
                    [id_str] => 44096288
                )

            [geo] => 
            [coordinates] => 
            [place] => 
            [contributors] => 
            [retweet_count] => 0
            [favorite_count] => 0
            [favorited] => 
            [retweeted] => 
            [lang] => ja
        )

)

0 件のコメント: