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

Destroying a Friendship

Unfollow another user.
Signature:
public async Task<User> DestroyFriendshipAsync(ulong userID)
public async Task<User> DestroyFriendshipAsync(string screenName)
Parameters/Filters:
Name Purpose Type Required
screenName Screen name of user to follow string Yes
userID ID of user to follow ulong Yes


Return Type: User
v3.0 Example:
            var user = await twitterCtx.DestroyFriendshipAsync("Linq2Tweeter");

            if (user != null && user.Status != null)
                Console.WriteLine(
                    "User Name: {0}, Status: {1}",
                    user.Name,
                    user.Status.Text);
v2.1 Example:
var user = twitterCtx.DestroyFriendship("LinqToTweeter", null, true);

Console.WriteLine(
    "User Name: {0}, Status: {1}",
    user.Name,
    user.Status.Text);

Twitter API: friendships/destroy

Last edited Nov 29, 2013 at 3:41 AM by JoeMayo, version 13