开发者

What is the best way to update local database to twitter

I am currently making开发者_JAVA百科 a rails app that will search #barcampmlk2 #{thesessionname} +1 from twitter. The app needs to update the local database that will count how many user voted +1 for the session.

I use jnunemaker/twitter

Now , I don't want to count how many user +1 each time page load from twitter. How am I going to do that? I can't figure out the since_id of the twitter, is it unix epoch?


The since_id is not a UNIX epoch timestamp. It is a unique id associated with the state any given search result. You must save the since_id and send it with a subsequent search query. Twitter will then use it to calculate what is the appropriate response.

See Twitter API Wiki, section Refreshing Search Results, for details.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜