Created
January 19, 2009 22:35
-
-
Save jdp/49213 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
stdClass Object | |
( | |
[results] => Array | |
( | |
[0] => stdClass Object | |
( | |
[text] => #chirp collegehumor.1703899c3fe4ada5da7fb78378b86c9a.jpg (JPEG Image, 480x360 pixels) http://bit.ly/mhX8 | |
[to_user_id] => | |
[from_user] => hanggliding | |
[id] => 1130751942 | |
[from_user_id] => 3738175 | |
[iso_language_code] => it | |
[profile_image_url] => http://s3.amazonaws.com/twitter_production/profile_images/71827199/KumiLeyla_normal.jpg | |
[created_at] => Mon, 19 Jan 2009 16:21:45 +0000 | |
) | |
[1] => stdClass Object | |
( | |
[text] => #chirp http://bit.ly/6xPV | |
[to_user_id] => | |
[from_user] => hanggliding | |
[id] => 1129695417 | |
[from_user_id] => 3738175 | |
[profile_image_url] => http://s3.amazonaws.com/twitter_production/profile_images/71827199/KumiLeyla_normal.jpg | |
[created_at] => Mon, 19 Jan 2009 04:27:30 +0000 | |
) | |
[2] => stdClass Object | |
( | |
[text] => #chirp alex-trebek.gif (GIF Image, 176x144 pixels) http://bit.ly/3SCO | |
[to_user_id] => | |
[from_user] => hanggliding | |
[id] => 1129570857 | |
[from_user_id] => 3738175 | |
[iso_language_code] => de | |
[profile_image_url] => http://s3.amazonaws.com/twitter_production/profile_images/71827199/KumiLeyla_normal.jpg | |
[created_at] => Mon, 19 Jan 2009 03:16:33 +0000 | |
) | |
[3] => stdClass Object | |
( | |
[text] => #chirp Ski Runner - Free Sports Game from AddictingGames http://bit.ly/2YD7 | |
[to_user_id] => | |
[from_user] => hanggliding | |
[id] => 1129563890 | |
[from_user_id] => 3738175 | |
[iso_language_code] => en | |
[profile_image_url] => http://s3.amazonaws.com/twitter_production/profile_images/71827199/KumiLeyla_normal.jpg | |
[created_at] => Mon, 19 Jan 2009 03:12:45 +0000 | |
) | |
[4] => stdClass Object | |
( | |
[text] => #chirp Hotel for Dogs (film) - Wikipedia, the free encyclopedia http://bit.ly/GcJw | |
[to_user_id] => | |
[from_user] => hanggliding | |
[id] => 1129552675 | |
[from_user_id] => 3738175 | |
[iso_language_code] => en | |
[profile_image_url] => http://s3.amazonaws.com/twitter_production/profile_images/71827199/KumiLeyla_normal.jpg | |
[created_at] => Mon, 19 Jan 2009 03:06:54 +0000 | |
) | |
[5] => stdClass Object | |
( | |
[text] => #chirp Chairs.com http://bit.ly/vUF6 | |
[to_user_id] => | |
[from_user] => hanggliding | |
[id] => 1129527637 | |
[from_user_id] => 3738175 | |
[iso_language_code] => en | |
[profile_image_url] => http://s3.amazonaws.com/twitter_production/profile_images/71827199/KumiLeyla_normal.jpg | |
[created_at] => Mon, 19 Jan 2009 02:54:50 +0000 | |
) | |
[6] => stdClass Object | |
( | |
[text] => #chirp Twitter / hanggliding http://bit.ly/UUL6 | |
[to_user_id] => | |
[from_user] => hanggliding | |
[id] => 1129524561 | |
[from_user_id] => 3738175 | |
[iso_language_code] => nl | |
[profile_image_url] => http://s3.amazonaws.com/twitter_production/profile_images/71827199/KumiLeyla_normal.jpg | |
[created_at] => Mon, 19 Jan 2009 02:53:11 +0000 | |
) | |
[7] => stdClass Object | |
( | |
[text] => #chirp MyFox Orlando | Teen charged with assaulting mom with taco http://bit.ly/qJ1p | |
[to_user_id] => | |
[from_user] => hanggliding | |
[id] => 1129498674 | |
[from_user_id] => 3738175 | |
[iso_language_code] => en | |
[profile_image_url] => http://s3.amazonaws.com/twitter_production/profile_images/71827199/KumiLeyla_normal.jpg | |
[created_at] => Mon, 19 Jan 2009 02:38:48 +0000 | |
) | |
) | |
[since_id] => 0 | |
[max_id] => 1131406290 | |
[refresh_url] => ?since_id=1131406290&q=%23chirp+bit.ly+from%3Ahanggliding | |
[results_per_page] => 15 | |
[total] => 8 | |
[completed_in] => 0.185113 | |
[page] => 1 | |
[query] => %23chirp+bit.ly+from%3Ahanggliding | |
) |
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 | |
// configure curl | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); | |
//curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); | |
// example search for #chirp hashtag with bit.ly from dan | |
$api_url = "http://search.twitter.com/search.json?q=%23chirp+bit.ly&from=hanggliding"; | |
curl_setopt($ch, CURLOPT_URL, $api_url); | |
$results = curl_exec($ch); | |
curl_close($ch); | |
// display json results | |
echo "<pre>"; | |
print_r(json_decode($results)); | |
echo "</pre>"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment