This project has moved. For the latest updates, please go here.

Showing Incoming Requests

Show IDs of all users requesting friendship with logged in user.

Entity: Friendship
Type: FriendshipType.Incoming
Parameters/Filters:
Name Purpose Type Required
Cursor Separates results into pages long no


Return Type: User
v3.0 Example:
            var request =
                await
                (from req in twitterCtx.Friendship
                 where req.Type == FriendshipType.Incoming
                 select req)
                .SingleOrDefaultAsync();

            if (request != null && 
                request.IDInfo != null && 
                request.IDInfo.IDs != null)
            {
                request.IDInfo.IDs.ForEach(req => Console.WriteLine(req));
            }
v2.1 Example:
            var request =
                (from req in twitterCtx.Friendship
                 where req.Type == FriendshipType.Incoming
                 select req)
                 .FirstOrDefault();

            request.IDInfo.IDs.ForEach(req => Console.WriteLine(req));

Twitter API: friendships/incoming

Last edited Nov 29, 2013 at 2:42 AM by JoeMayo, version 9