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
I've had some progress based on another example from these forums. Getting these errors now?
class globals
        {
            // Set Application Credentials for the Twitter API.
            public static string oauth_consumer_key = "oZ8";
            public static string oauth_consumer_secret = "NgR";
            public static string applicationCredentials = "";

        }

        public mainform()
        {
            InitializeComponent();
        }
private void button2_Click_1(object sender, EventArgs e)
        {
            globals.applicationCredentials = CredentialsCreator.GenerateApplicationCredentials(globals.oauth_consumer_key, globals.oauth_consumer_secret);
            var url = CredentialsCreator.GetAuthorizationURL(globals.applicationCredentials);
            Process.Start(url);
            auth_console.Text += "Please enter the captcha : " + Environment.NewLine;
        }

        private void button5_Click(object sender, EventArgs e)
        {
            var captcha = auth_pin.Text;
            // Here are the new credentials!
            var result = CredentialsCreator.GetCredentialsFromVerifierCode(captcha, globals.applicationCredentials);
            auth_console.Text += result.AccessTokenSecret + Environment.NewLine;

            TwitterCredentials.SetCredentials(result);
}
Error 1 Cannot implicitly convert type 'Tweetinvi.Core.Interfaces.Credentials.ITemporaryCredentials' to 'string' C:\Users

Error 2 The best overloaded method match for 'Tweetinvi.CredentialsCreator.GetAuthorizationURL(Tweetinvi.Core.Interfaces.Credentials.ITemporaryCredentials)' has some invalid arguments C:\Users

Error 3 Argument 1: cannot convert from 'string' to 'Tweetinvi.Core.Interfaces.Credentials.ITemporaryCredentials' C:\Users

'Tweetinvi.CredentialsCreator.GetCredentialsFromVerifierCode(string, Tweetinvi.Core.Interfaces.Credentials.ITemporaryCredentials)' has some invalid arguments C:\Users

Error 5 Argument 2: cannot convert from 'string' to 'Tweetinvi.Core.Interfaces.Credentials.ITemporaryCredentials' C:\Users

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>