Exemple #1
0
 /// <summary>
 /// Follow Twitter User
 /// </summary>
 /// <param name="twitterUser">Twitter UserName And Password</param>
 /// <param name="UserToFollow">ScreenName Of Whom You Want To Follow</param>
 /// <returns>Returm True Follow Is Success</returns>
 public bool FollowUser(TwitterUser twitterUser, int UserToFollow)
 {
     try
     {
         Twitter.Core.FriendshipMethods.Friendship friendship = new GlobusTwitterLib.Twitter.Core.FriendshipMethods.Friendship();
         xmlResult = friendship.Friendships_Create(twitterUser, UserToFollow);
         return(true);
     }
     catch
     {
         return(false);
     }
 }
 /// <summary>
 /// Follow Twitter User
 /// </summary>
 /// <param name="twitterUser">Twitter UserName And Password</param>
 /// <param name="UserToFollow">ScreenName Of Whom You Want To Follow</param>
 /// <returns>Returm True Follow Is Success</returns>
 public bool FollowUser(TwitterUser twitterUser, int UserToFollow)
 {
     try
     {
         Twitter.Core.FriendshipMethods.Friendship friendship = new GlobusTwitterLib.Twitter.Core.FriendshipMethods.Friendship();
         xmlResult = friendship.Friendships_Create(twitterUser, UserToFollow);
         return true;
     }
     catch
     {
         return false;
     }
 }
Exemple #3
0
 /// <summary>
 /// Follow Twitter User
 /// </summary>
 /// <param name="oAuth">OAuth Keys Token, TokenSecret, ConsumerKey, ConsumerSecret</param>
 /// <param name="UserToFollow">ScreenName Of Whom You Want To Follow</param>
 /// <returns>Returm True Follow Is Success</returns>
 public bool FollowUser(oAuthTwitter oAuth, int UserToFollow)
 {
     Twitter.Core.FriendshipMethods.Friendship friendship = new GlobusTwitterLib.Twitter.Core.FriendshipMethods.Friendship();
     xmlResult = friendship.Friendships_Create(oAuth, UserToFollow);
     return(true);
 }
 /// <summary>
 /// Follow Twitter User
 /// </summary>
 /// <param name="oAuth">OAuth Keys Token, TokenSecret, ConsumerKey, ConsumerSecret</param>
 /// <param name="UserToFollow">ScreenName Of Whom You Want To Follow</param>
 /// <returns>Returm True Follow Is Success</returns>
 public bool FollowUser(oAuthTwitter oAuth, int UserToFollow)
 {
     Twitter.Core.FriendshipMethods.Friendship friendship = new GlobusTwitterLib.Twitter.Core.FriendshipMethods.Friendship();
     xmlResult = friendship.Friendships_Create(oAuth, UserToFollow);
     return true;
 }