I'm trying to get and generate a Twitter timeline from PHP and Javascript. So I doing the following things.
1- Get an initial tweets for #OneHashtag, with this query params: count=20, since_id=0, max_id=NULL (no max_id param)
2- Set my since_id variable with the newest tweet previosly retrieved.
3- Set max_id variable with SINCE_ID + 20 (count parameter)
4- Make the query with this new params
My problem and question is, this approuch is correct? And second, i'm having problems to perform addition beetween SINCE_ID + 20 in javascript, to set my new params and make the ajax request.
Much appreciate your help! Regards.