[twitter-dev] Re: How to check if user is followed?

2009-10-08 Thread twittme_mobi
Hi Tomas, you are absolutely right but i am considering caching in a different task that i am doing.. Thanks! On Oct 7, 12:36 pm, Thomas Hübner wrote: > If you unfollow or follow or block you get an user xml back from Api - > is it to difficult to remove or add the returned id manually from ID

[twitter-dev] Re: How to check if user is followed?

2009-10-07 Thread Thomas Hübner
If you unfollow or follow or block you get an user xml back from Api - is it to difficult to remove or add the returned id manually from ID List/Array? We talk about runtime? This saves a lot of expensive Api calls (to load the id's on start and manage them within your code then) On 6 Okt., 23:35

[twitter-dev] Re: How to check if user is followed?

2009-10-07 Thread twittme_mobi
That's exactly the case, Thanks! On Oct 6, 11:52 pm, Abraham Williams <4bra...@gmail.com> wrote: > Check out:http://apiwiki.twitter.com/Twitter-REST-API-Method:-friendships-show > > On Sat, Oct 3, 2009 at 04:46, twittme_mobi wrote: > > > Hi guys, i tried friendship/exists but it throws an > > er

[twitter-dev] Re: How to check if user is followed?

2009-10-06 Thread Abraham Williams
Check out: http://apiwiki.twitter.com/Twitter-REST-API-Method:-friendships-show On Sat, Oct 3, 2009 at 04:46, twittme_mobi wrote: > > Hi guys, i tried friendship/exists but it throws an > error when the user is protected.How should i accomplish this task > with the API? -- Abraham Williams

[twitter-dev] Re: How to check if user is followed?

2009-10-06 Thread twittme_mobi
Hi Tomas, I just checked the social graph functions.The point is that if i make unfollow and then get all the id's of users that i follow - the user id that i unfollowed would be still there - e.g. this methods are not updated in real time. Could you all comment on this?Is that a bug? On Oct 6,

[twitter-dev] Re: How to check if user is followed?

2009-10-06 Thread twittme_mobi
Hi Tomas, Thanks for the colaboration! I do not handle all the users at the same time, i just ment that storing session data for all currently logged-in users could take some memory resources but in general i agree with you...some caching along with a proper implementation should not harm :) Tha

[twitter-dev] Re: How to check if user is followed?

2009-10-05 Thread Thomas Hübner
I only can talk for .NET - A Dictionary(of Long, Boolean) with 5000 Id's needs around 500 Ticks If I request the Method .ContainsKey. I don't think that an API Request with parsing xml can be faster. Additional you nail the server with unneeded requests which are "expensive" (rate limits) too I d

[twitter-dev] Re: How to check if user is followed?

2009-10-05 Thread twittme_mobi
Hi Tomas, another question to collaborate, do you think that is faster to find the ID in array by iterating it rather that searching for a string in the XML with some well known search function On Oct 5, 10:54 am, twittme_mobi wrote: > Hi Tomas, > > Thanks for the clarification. > One questi

[twitter-dev] Re: How to check if user is followed?

2009-10-05 Thread twittme_mobi
Hi Tomas, Thanks for the clarification. One question - if you have many users, you will need to load all the IDs for All the users in the memory - isn't that too heavy?some of the users have 10+ followers. Thanks. On Oct 4, 6:26 pm, Thomas Hübner wrote: > the problem is that a friendship e

[twitter-dev] Re: How to check if user is followed?

2009-10-04 Thread Thomas Hübner
the problem is that a friendship exist is an "expensive" API Call (of 150 possible per hr) I do not know what kind of Application you plan but for my client App I load the ID's of followers with one API call and keep this list in memory. If a status become loaded I compare the icluded UserID with t

[twitter-dev] Re: How to check if user is followed?

2009-10-04 Thread twittme_mobi
Hi Tomas, thanks for the reply! the social graph methods are too heavy for such a simple operation. I have to check if user is followed every time that a profile is visited so i would now where to put "Follow" or "Unfollow" button.It is not reasonable to execute the social graph methods every tim

[twitter-dev] Re: How to check if user is followed?

2009-10-03 Thread Thomas Hübner
you have the social graph methods which deliver ID's. Unfortunately the same API call for screennames is missed - so you never can make comparings with search API results because there is no userID in. friends/ids followers/ids cheers, Thomas twittme_mobi schrieb: > Hi guys, i tried friendship/e