Created
July 18, 2012 10:54
-
-
Save lamprosg/3135537 to your computer and use it in GitHub Desktop.
Latest Tweet using jQuery
This file contains hidden or 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
| <script src="http://code.jquery.com/jquery-latest.js"></script> | |
| <script> | |
| $(document).ready(function () | |
| { | |
| $.getJSON("http://twitter.com/statuses/user_timeline/USERNAME.json?callback=?", function(data) { | |
| $(".show_tweet").html(data[0].text); | |
| }); | |
| }); | |
| </script> | |
| <div class="show_tweet"></div> | |
| //replace USERNAME with your unique Twitter username | |
| //The show_tweet class is where the Tweet will display |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment