TwitterAPIで取得したフォローしているユーザーIDの連想配列を
外部ファイルに書き込みたいんですけどうまくいきません
どうすればいいですか?
<?php ini_set( 'display_errors', 1 ); error_reporting(E_ALL); //認証 $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN , ACCESS_TOKEN_SECRET); //データ取得 $friends_data = $connection->get("friends/ids"); $serial=serialize($friends_data->ids); $friends = array(); /*ここから---------------- id.txtは作成済みで上書き処理しますが、機能してません。 エラーも出ないし。。。。どうすればいいですか?*/ $file = '/Applications/MAMP/htdocs/friendsid/id.txt'; file_get_contents($file,$serial,FILE_APPEND); var_dump($serial); ?>
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/04/18 23:59
2016/04/19 01:30
2016/04/19 07:52
2016/04/19 08:43