Guest User

Untitled

a guest
Jul 16th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. // Create a new service and set the current authenticated user
  2. TwitterService service = new TwitterService();
  3. service.AuthenticateAs(username, password);
  4.  
  5. // Get the authenticated user's profile
  6. TwitterUser profile = service.GetUserProfile();
  7.  
  8. // Determine if a TwitterUser is following another
  9. var isFollowing = profile.IsFollowing("dimebrain");
  10.  
  11. // Tweet as the authenticated user
  12. var tweet = service.Tweet("This is the simple API for TweetSharp");
Add Comment
Please, Sign In to add comment