![]() |
Advice with Twitter API getting date created
Hi all
I have built this Twitter plugin by going through some tutorials. It works great but I would also like to display the date and time the tweet was created as well. I was hoping someone might be able to help me modify this code: Any help would be greatly appreciated Code:
(function($){ |
I don't much see the need for the plugin here when you can just hook straight into the twitter API. I don't much see the need for jQuery, either, but I guess that's a different story...
Code:
<body> |
Thanks,
I managed it by including this line: holder.append("<p>"+item.created_at+"</p>"); But I think your way is more economical. By the way, I dont suppose you know a way of displaying Twitter images as well? |
you can see an example of the object returned here
so if you're looking for the user profile pic I'm guessing that would be something like Code:
$("#tweets").append("<p>" + item.text.makeLinks() +" ("+item.created_at +") <img src="+item.user.profile_image_url+"></img></p>"); |
| All times are GMT +1. The time now is 08:34 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.