Yeah, again with the nomenclature.  I don't want to know if the other
account is following me; I want to know whether or not my device is
receiving their updates (i.e., via SMS). In my previous post, where I
said "friend", I meant what's commonly called a "follower" and where I
said "follower" I meant "one who receives updates on a mobile device."

Thanks for the reply,
Warren

On Jan 6, 12:59 am, dougw <[email protected]> wrote:
> You can handle it with two calls to the friendship exists 
> method:http://apiwiki.twitter.com/REST+API+Documentation#exists
>
>     * user_a.  Required.  The ID or screen_name of the first user to
> test friendship for.
>     * user_b.  Required.  The ID or screen_name of the second user to
> test friendship for.
>     * Ex:http://twitter.com/friendships/exists.xml?user_a=alice&user_b=bob
>
> Psuedo code to do what you want:
> var me = "dougw"
> var you = "@warrenm"
> // Determine if user_a is a friend and follower of user_b
> var is_friend =http://twitter.com/friendships/exists.xml?user_a=you&user_b=me
> var is_follower 
> =http://twitter.com/friendships/exists.xml?user_a=me&user_b=you
> if( is_friend AND is_follower) {
>      // process
>     doMethod();
>
> }
>
> On Jan 6, 12:19 am, "@warrenm" <[email protected]> wrote:
>
> > First time poster, so I'm sorry if this has been asked and answered; I
> > did search the archives.
>
> > I'm trying to use the API to query whether a particular account is
> > both a friend and follower (in the notifications sense) of another
> > account. I realize I'm using deprecated terminology here, but it seems
> > to be the language of the API.
>
> > What I need is something like:
>
> >http://twitter.com/notifications/enabled/username.json
>
> > Is there a way to get this information, even if it's roundabout, short
> > of scraping?
>
> > Thanks,
> > Warren Moore
> > @warrenm

Reply via email to