Skip to content

Instantly share code, notes, and snippets.

View rashad612's full-sized avatar
💭
I may be slow to respond.

Rashad Majali rashad612

💭
I may be slow to respond.
View GitHub Profile
function getUnreadItems() {
$.ajax({
url : "https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=" + account + "&count=1",
dataType : "jsonp",
success: function(results) {
var id = results['0'].id;
var text = results['0'].text;
var initialValue = results['0'].id;
var avatar = results['0'].user.profile_image_url;