Create/Destroy Friendship API

Jan 29, 2015 at 12:23 PM
Hello,

I am using LinkToTwitter 2.1.11

I tried to follow this example of how to create a friendship:
https://linqtotwitter.codeplex.com/wikipage?title=Creating%20a%20Friendship&referringTitle=Handling%20Friendships

Example says:
var user = twitterCtx.CreateFriendship("JoeMayo", null, true);

However I can't find the choise: .CreateFriendship in this code:
LinqToTwitter.TwitterContext twitterCtx = new LinqToTwitter.TwitterContext();
twitterCtx. ???

How can I create and destroy a friendship?

Many thanks!
Andreas
Coordinator
Jan 29, 2015 at 5:04 PM
Hi Andreas,

Maybe you need to add a using clause to the top of your file:
using LinqToTwitter;
Since everything is in the LinqToTwitter namespace, your code won't find the extension methods unless you do this.

@JoeMayo