I'm a newbie to both the social framework and twitter in general. Using console quick start example, I've been able to authenticate and update my status successfully. However, the example code obtains a verifier value by launching a web browser to navigate the authentication URL as seen here:
string authenticateUrl = twitterServiceProvider.OAuthOperations.BuildAuthen ticateUrl(oauthToken.Value, null);
Process.Start(authenticateUrl);
The return value is then manually entered through the UI such that a request token can obtained.
Console.WriteLine("Enter PIN Code from Twitter authorization page:");
string pinCode = Console.ReadLine();
AuthorizedRequestToken requestToken = new AuthorizedRequestToken(oauthToken, pinCode);
While this basic process works well for interactive applications, my application is a background process and providing a UI would defeat my purpose.
With that said, how can I obtain the verifier code progratically without launching a browser and manually entering the verifier (pin code in the above example)?
Any help and suggestions are greatly appreciated.
string authenticateUrl = twitterServiceProvider.OAuthOperations.BuildAuthen ticateUrl(oauthToken.Value, null);
Process.Start(authenticateUrl);
The return value is then manually entered through the UI such that a request token can obtained.
Console.WriteLine("Enter PIN Code from Twitter authorization page:");
string pinCode = Console.ReadLine();
AuthorizedRequestToken requestToken = new AuthorizedRequestToken(oauthToken, pinCode);
While this basic process works well for interactive applications, my application is a background process and providing a UI would defeat my purpose.
With that said, how can I obtain the verifier code progratically without launching a browser and manually entering the verifier (pin code in the above example)?
Any help and suggestions are greatly appreciated.