[twitter-dev] limits for Lists?
Hey, Working on some analytics and since I'm not quite ready to make the leap to the streaming api I was thinking of using lists. Listing 500 people * 20 lists = 10 000 people is okay to do (subject to API limits)? That is it's not the same as trying to follow them where it degrades the twitter experience and the account gets suspended? If they are limits and I'll be careful to only use test accounts rather than risking my an important one... Thanks! -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Comparing Friendship
Hello, What are the oauth functions to check if somebody is following me or not? I am currently making a script to check up if a user is following me, and if so, following them back, and if not, unfollow the user. Can somebody give me a point in the direction what oauth functions I need? btw; I am using twitteroauth. Rick -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Comparing Friendship
On 28 sep, 16:44, Taylor Singletary taylorsinglet...@twitter.com wrote: In PHP twitteroauth, this would probably be something like: $content = $connection-get('friendships/show', array('source_screen_name'='episod', 'target_screen_name'='twitterapi')); Yes. That would be something like that. On 28 sep, 18:03, Ken D. k...@cimas.ch wrote: Hey Rick, It's the second time in a week that someone brings up the autofollow/ unfollow question (see also:http://groups.google.com/group/twitter-development-talk/msg/b7b1dfbf6...) and I would love to understand the follow economy once and for all. I was not aware of this fact. I am sorry if I heated up the discussion agian. First of all, you say that if someone is following you, you will follow back, but if they are not following, you will unfollow. If you are not yet following them, do you mean that you would block them? Yes, but I do not block them. I will follow them if they follow me, if they unfollow me, I'll unfollow them. If one succeeds in building up an account that follows and is followed back by thousands of users - as seems to be the goal - does one ever actually visit the account? It can't possibly make any sense to access such an account via twitter.com. Are there tools that can render such an account usable or meaningful? Finally, why the pretense of following if one will never actually read the users' tweets? Does Twitter have in mind to adapt the system to this reality? This is not a rant, I sincerely want to know! Non taken buddy. Its going about a dutch account on twitter that is really important for most people and they liked to be followed back. Olso, sometimes someone unfollows and then its not neccessary to follow them. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Please remove from blacklist
Are you getting any http reason returned? It is olso a good thing to check the Pre-launch Checklist in order to be sure that you got everything right before asking to be unbanned: http://dev.twitter.com/pages/streaming_api On 28 sep, 22:13, Kiam kiamc...@gmail.com wrote: Hi, We had two IP's that were whitelisted, but they recently became blacklisted. I see: # curl -v -u myusername:mypassword 'http://stream.twitter.com/1/ statuses/sample.xml' * About to connect() to stream.twitter.com port 80 (#0) * Trying 168.143.162.55... Connection refused * couldn't connect to host * Closing connection #0 We've investigated our code and found a bug that was opening too many connections to Twitter. We've fixed the problem now. Could the friendly Twitter folks remove us from the blacklist? :) Our IP's are 184.72.57.86 and 184.72.51.50. Thanks in advance! Kiam Choo Parakweet.com -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: TwitterOAuth
Hello Abraham, I still have some issues. May I polite ask If I may e-mail you to send you a script where I am stuck in for the last 5 weeks.. Thanks. On 27 sep, 00:00, Abraham Williams 4bra...@gmail.com wrote: This should do what you need:http://gist.github.com/598349 Abraham - Abraham Williams | Hacker Advocate |http://abrah.am @abraham |http://projects.abrah.am|http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Sun, Sep 26, 2010 at 13:57, Rick Stuivenberg rickstuivenb...@gmail.comwrote: Hello, Since the deprecated of the basic auth method, I am now using TwitterOauth from Abraham. I am trying to get all of my followers information in one array so I can use all those information and process it. I call the follow GET from the OAuth: $getids = $oauth-get('followers/ ids'); Now I want to know how to process these ids in order to use $oauth- get('users/lookup', array('user_id' = 'ID')); Is there somebody that wants to help me into the right direction or has a example code. Many thanks! -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: TwitterOAuth
Thank you Abraham. It works but its slow w/ 1350 followers, but it works. I am still having troubles finishing my script for the last 5 weeks now, can I mail you with my script file so you can put me in the right direction? I feel I am missing a clue or a line. Your help is very mutch appreciated. Rick On 27 sep, 00:00, Abraham Williams 4bra...@gmail.com wrote: This should do what you need:http://gist.github.com/598349 Abraham - Abraham Williams | Hacker Advocate |http://abrah.am @abraham |http://projects.abrah.am|http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Sun, Sep 26, 2010 at 13:57, Rick Stuivenberg rickstuivenb...@gmail.comwrote: Hello, Since the deprecated of the basic auth method, I am now using TwitterOauth from Abraham. I am trying to get all of my followers information in one array so I can use all those information and process it. I call the follow GET from the OAuth: $getids = $oauth-get('followers/ ids'); Now I want to know how to process these ids in order to use $oauth- get('users/lookup', array('user_id' = 'ID')); Is there somebody that wants to help me into the right direction or has a example code. Many thanks! -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] TwitterOAuth
Hello, Since the deprecated of the basic auth method, I am now using TwitterOauth from Abraham. I am trying to get all of my followers information in one array so I can use all those information and process it. I call the follow GET from the OAuth: $getids = $oauth-get('followers/ ids'); Now I want to know how to process these ids in order to use $oauth- get('users/lookup', array('user_id' = 'ID')); Is there somebody that wants to help me into the right direction or has a example code. Many thanks! -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: TwitterOAuth
Excellent. This should help me continue doing development. Thank you. On 27 sep, 00:00, Abraham Williams 4bra...@gmail.com wrote: This should do what you need:http://gist.github.com/598349 Abraham - Abraham Williams | Hacker Advocate |http://abrah.am @abraham |http://projects.abrah.am|http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Sun, Sep 26, 2010 at 13:57, Rick Stuivenberg rickstuivenb...@gmail.comwrote: Hello, Since the deprecated of the basic auth method, I am now using TwitterOauth from Abraham. I am trying to get all of my followers information in one array so I can use all those information and process it. I call the follow GET from the OAuth: $getids = $oauth-get('followers/ ids'); Now I want to know how to process these ids in order to use $oauth- get('users/lookup', array('user_id' = 'ID')); Is there somebody that wants to help me into the right direction or has a example code. Many thanks! -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] My cursors problem
My topic subject might be spam-attractive but I didn't had any insperation for a nicer one. I am playing around for 6 weeks with my cursor problem in PHP. I use the twitteroauth library and I am unable to solve my issue. I hope somebody can help me solving my cursor problem. My current code with error_reporting(E_ALL); returns a couple of errors. But it seems to not give me any satisfied result I want to (It only returns the last 100 followers). ?php // Above the cursor definition I include stuff like twitterOAuth.php and I have the access tokens etc. I leaved them out of this code for easyness $cursor = -1; $followers = $oauth-get('statuses/followers', array('cursor' = $cursor)); $totaal = count($followers); while($totaal 1) { for($x=0; $x$totaal; $x++) { // Here I removed the code so you can see the overall code. Inside this while I get information on who made his last status. I check them trought $followers[$x]-status-created_at) and $followers[$x]- protected) and then I process this information. } $cursor = $followers-next_cursor; $followers = $oauth-get('statuses/followers', array('cursor' = $cursor)); $totaal = count($followers); $cursor++; } ? Thats the code. I removed some of the informatiob so you can easy see my bone code. What am I doing wrong? Should I process $totaal different? With this code I only get the last 100 followers and not anything else. Thank you for helping me before the basis xAuth ends. Regards -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk?hl=en
[twitter-dev] Re: abrahams twitteroauth issue
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 have a issue with cursor } } $followers = $oauth-get('statuses/followers', array('cursor' = $cursor)); $totaal = count($followers); $cursor++; } Thanks. On 18 jul, 02:10, Abraham Williams 4bra...@gmail.com wrote: 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 |http://projects.abrah.am|http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Mon, Jun 28, 2010 at 02:34, Rick rickstuivenb...@gmail.com wrote: 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: 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 $cursor = $info-next_cursor; } } If you just want to count all of your followers, why not do users/ show? That contains a followers_count variable in it. On Jun 25, 4:18 pm, Rick rickstuivenb...@gmail.com wrote: 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 followers with the abrahams twitter library? On 25 jun, 15:11, Sam Wierema samwier...@gmail.com wrote: 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 rickstuivenb...@gmail.com wrote: Howdy! I am currently making my application OAuth compatible from basic auth, currently I have a issue I need to get resolved in order to switch to the new OAuth method. I am getting my followers from: $oauth-get('statuses/followers'); but that only gives me the last 100 followers, I trought it would be easy to do it this way: $cursor = -1; $followers = $oauth-get('statuses/followers', array('cursor' = $cursor)); // Other code here.. $cursor++; $followers = $oauth-get('statuses/followers', array('cursor' = $cursor)); Is it possible to get all my users, because this code does not work and my inspiration was wrong. Hopefully you can help me. Regards, Rick
[twitter-dev] Re: abrahams twitteroauth issue
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: 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 $cursor = $info-next_cursor; } } If you just want to count all of your followers, why not do users/ show? That contains a followers_count variable in it. On Jun 25, 4:18 pm, Rick rickstuivenb...@gmail.com wrote: 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 followers with the abrahams twitter library? On 25 jun, 15:11, Sam Wierema samwier...@gmail.com wrote: 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 rickstuivenb...@gmail.com wrote: Howdy! I am currently making my application OAuth compatible from basic auth, currently I have a issue I need to get resolved in order to switch to the new OAuth method. I am getting my followers from: $oauth-get('statuses/followers'); but that only gives me the last 100 followers, I trought it would be easy to do it this way: $cursor = -1; $followers = $oauth-get('statuses/followers', array('cursor' = $cursor)); // Other code here.. $cursor++; $followers = $oauth-get('statuses/followers', array('cursor' = $cursor)); Is it possible to get all my users, because this code does not work and my inspiration was wrong. Hopefully you can help me. Regards, Rick
[twitter-dev] abrahams twitteroauth issue
Howdy! I am currently making my application OAuth compatible from basic auth, currently I have a issue I need to get resolved in order to switch to the new OAuth method. I am getting my followers from: $oauth-get('statuses/followers'); but that only gives me the last 100 followers, I trought it would be easy to do it this way: $cursor = -1; $followers = $oauth-get('statuses/followers', array('cursor' = $cursor)); // Other code here.. $cursor++; $followers = $oauth-get('statuses/followers', array('cursor' = $cursor)); Is it possible to get all my users, because this code does not work and my inspiration was wrong. Hopefully you can help me. Regards, Rick
[twitter-dev] Re: abrahams twitteroauth issue
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 followers with the abrahams twitter library? On 25 jun, 15:11, Sam Wierema samwier...@gmail.com wrote: 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 rickstuivenb...@gmail.com wrote: Howdy! I am currently making my application OAuth compatible from basic auth, currently I have a issue I need to get resolved in order to switch to the new OAuth method. I am getting my followers from: $oauth-get('statuses/followers'); but that only gives me the last 100 followers, I trought it would be easy to do it this way: $cursor = -1; $followers = $oauth-get('statuses/followers', array('cursor' = $cursor)); // Other code here.. $cursor++; $followers = $oauth-get('statuses/followers', array('cursor' = $cursor)); Is it possible to get all my users, because this code does not work and my inspiration was wrong. Hopefully you can help me. Regards, Rick
[twitter-dev] OAuth statuses/followers
I hope somebody could help me with my problem regarding the Twitter OAuth If I use $oauth-get('statuses/followers'); I get the first 100 followers. If I use $oauth-get('statuses/followers', array('cursor' = $cursor)); I have to use this code: ?php $cursor = -1; $followers = $oauth-get('statuses/followers', array('cursor' = $cursor)); $totaal = count($followers); while ($totaal 1) { for($x=0; $x$totaal; $x++) { if(preg_match(/^.date('D M d'). 0([3-9]{1}):([0-9]{2}):([0-9] {2}) \+([0-9]{4}) .date('Y')./,$followers[$x]-status-created_at) || $followers[$x]-protected) { } } $cursor++; $followers = $oauth-get('statuses/followers', array('cursor' = $cursor)); $totaal = count($followers); ? But that seems not to get working. And without the cursor idea, I get only the first 100 followers. Is there a easy solution for this?
[twitter-dev] Re: OAuth statuses/followers
Hi Matt, Thanks for your answer. I will use the refers in my script. On the other hand, I got no solution for the cursor problem I currently have, is there a solution for? - Rick On 11 jun, 16:06, Matt Harris thematthar...@twitter.com wrote: Hi Rick, Depending on what you are trying to obtain we recommend using the friends/ids [1] and followers/ids [2] methods in combination with the user/lookup [3] if you need more information about them. Also, you want to make sure you're client is using the api.twitter.comdomain and not twitter.com. Hope that helps, Matt 1.http://dev.twitter.com/doc/get/friends/ids 2.http://dev.twitter.com/doc/get/followers/ids 3.http://dev.twitter.com/doc/get/users/lookup On Fri, Jun 11, 2010 at 3:46 AM, Rick rickstuivenb...@gmail.com wrote: I hope somebody could help me with my problem regarding the Twitter OAuth If I use $oauth-get('statuses/followers'); I get the first 100 followers. If I use $oauth-get('statuses/followers', array('cursor' = $cursor)); I have to use this code: ?php $cursor = -1; $followers = $oauth-get('statuses/followers', array('cursor' = $cursor)); $totaal = count($followers); while ($totaal 1) { for($x=0; $x$totaal; $x++) { if(preg_match(/^.date('D M d'). 0([3-9]{1}):([0-9]{2}):([0-9] {2}) \+([0-9]{4}) .date('Y')./,$followers[$x]-status-created_at) || $followers[$x]-protected) { } } $cursor++; $followers = $oauth-get('statuses/followers', array('cursor' = $cursor)); $totaal = count($followers); ? But that seems not to get working. And without the cursor idea, I get only the first 100 followers. Is there a easy solution for this? -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris
[twitter-dev] Re: Some thoughts leading up to Chirp
Absolutely right but then the comment, it's dangerous to be a Twitter only client comes to mind. The formula then becomes to develop for other networks (StatusNet?). Good for the end user and other networks but ultimately good for Twitter? The argument could be made that it's good for everyone...or maybe counter-productive since the wheel is being reinvented? Twitter, help us find another formula to continue to help you... On Apr 12, 6:34 am, notinfluential notinfluent...@gmail.com wrote: On Apr 12, 2:44 am, Jason Rundell jason.rund...@gmail.com wrote: When will Twitter answer: 1) Why did Twitter acquire Tweetie? 2) What is Twitter planning to do with Tweetie? Since when does Twitter owe you or any of us any sort of explanation for their business practices? Lemme get this straight. Twitter is FREE. The Twitter API is public, well documented, and FREE. Our privilege is to build tools and businesses on top of Twitter's FREE services. Twitter doesn't want a cut of your business. They don't require approval of your apps. But for some reason you (and others) feel entitled to an explanation, or details somehow outlining their strategy and practices? The tone of this group never ceases to amaze me. Get back to coding and building cool stuff. @notinfluential -- To unsubscribe, reply using remove me as the subject.
[twitter-dev] Re: twitter.com/followers/befriend_all ?
It'd be a great method to have - it'd save multiple calls to the api to get friends and followers and add the delta. On Sat, Oct 10, 2009 at 5:45 AM, Abraham Williams 4bra...@gmail.com wrote: Fascinating. I don't remember ever hearing about this method. There are a couple of references on the net: http://www.google.com/search?hl=enq=followers/befriend_all; Abraham On Fri, Oct 9, 2009 at 13:42, PJB pjbmancun...@gmail.com wrote: If it is not in the Twitter API documentation, if the API call not work for you, if you see no reference to it here on this forum... I am at a loss why you are asking whether it exists or not. Clearly it does not. On Oct 7, 11:29 am, Rick Yazwinski rick.yazwin...@gmail.com wrote: I see comments via google about having a bot call this regularily to make sure your bot follows anyone following the bot... makes sense (rather than getting all friends and all followers and issuing seperate friend requests), however I see no reference to it on the twitter api site. Is this legit? When I call it it just redirects to my home page. Rick... -- Abraham Williams | Community Evangelist | http://web608.org Hacker | http://abrah.am | http://twitter.com/abraham Project | http://fireeagle.labs.poseurtech.com This email is: [ ] blogable [x] ask first [ ] private. Sent from Madison, Wisconsin, United States
[twitter-dev] Re: twitter.com/followers/befriend_all ?
Bump.. On Wed, Oct 7, 2009 at 2:29 PM, Rick Yazwinski rick.yazwin...@gmail.com wrote: I see comments via google about having a bot call this regularily to make sure your bot follows anyone following the bot... makes sense (rather than getting all friends and all followers and issuing seperate friend requests), however I see no reference to it on the twitter api site. Is this legit? When I call it it just redirects to my home page. Rick...
[twitter-dev] twitter.com/followers/befriend_all ?
I see comments via google about having a bot call this regularily to make sure your bot follows anyone following the bot... makes sense (rather than getting all friends and all followers and issuing seperate friend requests), however I see no reference to it on the twitter api site. Is this legit? When I call it it just redirects to my home page. Rick...