Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: How do I add authentication to a WFA?

$
0
0
Please try this example:
privatestatic IOAuthCredentials CredentialsCreator_WithCaptcha_SingleStep(string consumerKey, string consumerSecret)
{
    Func<string, string> retrieveCaptcha = url =>
    {
        // Change to display the information within your application

        Console.WriteLine("Go on : {0}", url);
        Console.WriteLine("Enter the captch : ");
        return Console.ReadLine();
    };

    var newCredentials = CredentialsCreator.GetCredentialsFromCaptcha(retrieveCaptcha, consumerKey, consumerSecret);
    Console.WriteLine("Access Token = {0}", newCredentials.AccessToken);
    Console.WriteLine("Access Token Secret = {0}", newCredentials.AccessTokenSecret);

    return newCredentials;
}
Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles