[twitter-dev] Re: abrahams twitteroauth issue

2010-07-27 Thread Rick
Thank you Abraham for your support, I appreciate it very mutch. My current code: $cursor = -1; $followers = $oauth-get('statuses/followers', array('cursor' = $cursor)); $totaal = count($followers); while ($totaal 1) { for($x=0; $x$totaal; $x++) { // Removed code here since its not

Re: [twitter-dev] Re: abrahams twitteroauth issue

2010-07-17 Thread Abraham Williams
It should be possible to do everything the REST API currently supports other then uploading images which will be in the next beta. Feel free to send me code samples of what you are having issues with. Abraham - Abraham Williams | Hacker Advocate | http://abrah.am @abraham |

[twitter-dev] Re: abrahams twitteroauth issue

2010-06-28 Thread Rick
Hello, Is it even possible to use abrahams twitteroauth library to get all the followers the way I want it. I screwed up and now I must rewrite the cursor idea, Is anybody having a example code for the abrahams twitteroauth. Thank you On 25 jun, 21:50, Sam Wierema samwier...@gmail.com wrote:

[twitter-dev] Re: abrahams twitteroauth issue

2010-06-25 Thread Sam Wierema
You should not increment your cursor, because Twitter returns a cursor for you. And if cursor is 0, it means that there are no more pages (-1 + 1 = 0). Check your $followers variable that you got from the first call. It should be called something like next_cursor. On Jun 25, 2:26 pm, Rick

[twitter-dev] Re: abrahams twitteroauth issue

2010-06-25 Thread Rick
Thank you for your reply. I don't use next_cursor or whatsoever. I just use the $followers variable to use count it with $totaal = count($followers); so I can use it in my code. The cursor code I posted before is the only thing I use to try and get information. Is it even possible to get all the

[twitter-dev] Re: abrahams twitteroauth issue

2010-06-25 Thread Sam Wierema
Yes, it's very possible. Haven't tested it, but it should be something like this: $cursor = -1; while( $cursor !== 0 ) { $info = $oauth-get( 'statuses/followers', array( 'cursor' = $cursor ) ); if( $oauth-http_code === 200 !isset( $info-error ) ) { // Count or whatever here