Quantcast
Viewing all articles
Browse latest Browse all 4126

New Post: How to run actions on multiple twitter accounts without setting static TwitterCredentials.SetCredentials

Am still as confused as ever, as the actions don't seemingly require a user

To retweet
 var tweet = Tweet.PublishRetweet(lTweetId); 
return tweet.Retweeted;
I assume it uses the last user who authenticated?

via one of:
var cred = TwitterCredentials.CreateCredentials(this.oAuthToken, this.OAuthTokenSecret, this.ApiKey, this.ApiSecret);

var twitterUser = User.GetLoggedUser(this.Credentials);
But what if I have multiple users logged in?

Must I run the code single threaded,
  • auth a user / set credentials
  • perform action
  • auth another user / set credentials
  • perform action
  • etc etc?
:-s

Viewing all articles
Browse latest Browse all 4126

Trending Articles