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

Create/Destroy Friendship API

Jan 29, 2015 at 12:23 PM

I am using LinkToTwitter 2.1.11

I tried to follow this example of how to create a friendship:

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!
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.