Skip to content

Instantly share code, notes, and snippets.

@pkarl
Created October 25, 2011 14:41
Show Gist options
  • Save pkarl/1312964 to your computer and use it in GitHub Desktop.
Save pkarl/1312964 to your computer and use it in GitHub Desktop.
$.get('https://api.twitter.com/1/statuses/mentions.json?include_entities=true', {'since_id':'1234'}, function(data){
// parse that shit
// insert that shit
});
@sjl
Copy link

sjl commented Oct 25, 2011

How often do we poll? Does it insert that shit in order or just stick it at the top?

Needs to check for tweets that were already pulled down by the server, and also needs to add code to the current tweet-rendering stuff to check for duplicates as well.

What about when they refresh the page? Don't worry about old replies?

@pkarl
Copy link
Author

pkarl commented Oct 25, 2011 via email

@sjl
Copy link

sjl commented Oct 25, 2011

Sounds good -- go for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment