[twitter-dev] Comparing Friendship

2010-09-28 Thread Rick Stuivenberg
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

2010-09-28 Thread Rick Stuivenberg
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

2010-09-28 Thread Rick Stuivenberg
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] TwitterOAuth

2010-09-26 Thread Rick Stuivenberg
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