English 中文(简体)
Twitter状态计数不匹配
原标题:Twitter status count mismatch
  • 时间:2012-05-25 14:53:39
  •  标签:
  • twitter

I m loading twitter statuses as follows and instead of 6 i m getting 5 of them if i change that to 5 i m getting 4 so one less (count=1 gives 0 statuses) https://twitter.com/statuses/user_timeline/user_timeline.xml?count=6

i was reading documentation and they ve mentioned retweets, which i think i don t need however adding such param still give me one less https://twitter.com/statuses/user_timeline/user_timeline.xml?count=6&include_rts=true

as of now i m simply loading more then i need and just presenting 6 but has anyone an idea how this may be solved properly?

问题回答

咨询: 如果您希望人们提供更好的帮助, 请提供更多信息 。 例如, 您使用什么语言? 什么环境? 提供这些问题的代码也会有所帮助 。 这也将有助于您提供更多更具体的标签, 这样具有相关专业知识的人就会注意到问题, 帮助您解决问题 。

My thoughts with this information is that its a problem with array indexes. I don t know what experience you have with coding so if you know all this, please don t take offence, but when you use an array, the index starts at 0. So if you have an array with 6 items in, the indexes go from 0-5 (0, 1, 2, 3, 4, 5). So if you re trying to access elements 1-6 and you re starting from index 1, you will only be able to get items from index 1-5. Does that make sense?

如果没有,请提供更多资料,我再看一看

马修





相关问题
Understanding Twitter API s "Cursor" parameter

I don t really get how to use the Curesor parameter in Twitter s API, for an exmaple - here. Am I supposed to make a new API call for each 100 followers? I d love it if someone could provide a PHP ...

Cannot get Twitter-OAuth-iPhone to work

demo works as expected, no problems. But now I m trying to integrate it into my project. I use no xib-s, code only: OAuthTwitterDemoViewController *vc = [[OAuthTwitterDemoViewController alloc] init]; ...

Creating a constantly updating feed like Twitter

I d like to have something in my app that is just like Twitter but not Twitter. Basically it will be a place people can submit messages and do not need an account. They only way they can submit is ...

RegEx: Link Twitter-Name Mentions to Twitter in HTML

I want to do THIS, just a little bit more complicated: Lets say, I have an HTML input: <a href="http://www.example.com" title="Bla @test blubb">Don t break!</a> Some Twitter Users: @...

twitter status update using tweetsharp oauth preview 17

I am trying to update the status using tweetsharp oauth preview 17. Please let me know how ?. I tried this code var msg = FluentTwitter.CreateRequest() .AuthenticateWith(_consumerKey, ...

How to test the twitter API locally?

I m trying to write a web application that would use Twitter via OAuth. I run my local server as localhost , so I need the callback URL to be something like http://localhost/something/twitter.do ...

Get follower count on Twitter API search results

What I m trying to do is pull some search results, and sort them by users. Right now I m using $to->OAuthRequest( http://search.twitter.com/search.json , array( q => search-term ), GET ); to ...

热门标签