Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Example of Follow/Unfollow

$
0
0
Hi,

Yes you can find all the examples in Program.
For the sake of developers coming to this post here is the code:
var loggedUser = User.GetLoggedUser();
var userToFollow = User.GetUserFromScreenName(userName);

if (loggedUser.FollowUser(userToFollow))
{
        Console.WriteLine("You have successfully sent a request to follow {0}", userToFollow.Name);
}
Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>