I don't really understand the use of all the static helper objects, such as
So I created an object credentials
Is there anywhere that explains how run actions for multiple users?
TwitterCredentials.SetCredentials(this.oAuthToken, this.OAuthTokenSecret, this.ApiKey, this.ApiSecret);
From what I understand this sets the credentials, application wide. But I want to allow multiple users to run actions in the application.So I created an object credentials
var cred = TwitterCredentials.CreateCredentials(this.oAuthToken, this.OAuthTokenSecret, this.ApiKey, this.ApiSecret);
that is used to created an Uservar twitterUser = User.GetLoggedUser(this.Credentials);
so far so good, but now when I try and follow another user for example,var followThisUser = User.GetUserFromScreenName(usernameToFollow);
var success = twitterUser.FollowUser(follow)
I receive an exception, saying I MUST callvar cred = TwitterCredentials.CreateCredentials(this.oAuthToken, this.OAuthTokenSecret, this.ApiKey, this.ApiSecret);
which, if I do, does fix the exception. But I have no set a single users auth data app wide, which I don't want.Is there anywhere that explains how run actions for multiple users?