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

New Post: Generate Credential Examples

$
0
0
I have everything working perfectly on my side using the code provided on Examplinvi/CheatSheet.
// I think we are fine on this linevar applicationCredentials = CredentialsCreator.GenerateApplicationCredentials(consumerKey, consumerSecret);

// I receive an url that I need to redirect to in order for twitter to ask me whether I want to accept the application// Example : https://api.twitter.com/oauth/authorize?oauth_token=AMiHEy4fNwRlIZU3v8xCseyzeQTm1sMfMakvbb8Ivar url = CredentialsCreator.GetAuthorizationURLForCallback(applicationCredentials, "https://tweetinvi.codeplex.com");

// When I redirect to this URL Twitter ask me to accept the application.// When I accept, Twitter redirects to the CallbackURL// Example : https://tweetinvi.codeplex.com/?oauth_token=AMiHEy4fNwRlIZU3v8xCseyzeQTm1sMfMakvbb8I&oauth_verifier=q7o5CDB7CfuWGaufcDBpZIKP8gYBDJVM5FLlapWkY// At this point I have all the information I needvar callbackURL = "https://tweetinvi.codeplex.com/?oauth_token=AMiHEy4fNwRlIZU3v8xCseyzeQTm1sMfMakvbb8I&oauth_verifier=q7o5CDB7CfuWGaufcDBpZIKP8gYBDJVM5FLlapWkY";

// I get the new credentials.var newCredentials = CredentialsCreator.GetCredentialsFromCallbackURL(callbackURL, applicationCredentials);
I understand with your second example that you probably have been able to get as far as the last line of the application.
At this point would you please give me the complete Request URL?

Have you followed this workflow or did you forgot to redirect correctly or maybe did not specify the right callbackURL at the end of the process?

Regards,
Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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