Getting Twitter Homeline using Prototype
Welcome back m back with a new awesome tutorial about twitter..today in the morning one of my blogger and E-Friend asked me to create a script using which he can easily implement Twitter hometimeline in his one of website. So a hour ago i started working on it and it comes a strong and easy to implement tutorial for others too so we both decided to put it into my blog too..okay then without wasting your time i am going to show u the codes use these as it they are..
demo.php
here we go but before this you must be having prototype.js with you any ways if you don't want to copy and paste these code you can also download these from here
http://www.box.net/shared/bg09oxuhfn
demo.php
get_homeline.php
$content=file_get_contents("http://search.twitter.com/search.json?q=from%3A".$_POST['twitteruser'].""); $new=json_decode($content); echo " "; foreach($new->results as $homelines) { echo "
";"; } echo " ".$homelines->text."
here we go but before this you must be having prototype.js with you any ways if you don't want to copy and paste these code you can also download these from here
http://www.box.net/shared/bg09oxuhfn
I'm working with Twitter Oauth related to following post.
ReplyDeletehttp://www.9lessons.info/2010/02/connect-twitter-api-with-oauth-using.html
oh great man..
ReplyDelete