Last active
August 29, 2015 14:10
-
-
Save 5l/8fe14488e7a77b95a978 to your computer and use it in GitHub Desktop.
初期アイコンを取り除く
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once("TwistOAuth.php"); | |
$to = new TwistOAuth("CK", "CS", "OT", "OS"); | |
$res = $to->get("search/tweets", array( | |
"q" => "#はじめてのツイート", | |
'lang' => 'ja', | |
)); | |
foreach($res->statuses as $data){ | |
if(!preg_match('/default_profile_images/', $data->user->profile_image_url)){ | |
$user[] = $data->user->id_str; | |
} | |
} | |
print_r($user); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment