Request token (Twitterizer)


I dont know if anyone can help but i’ve been struggling with this all day.

In C# im trying to get a authorization request token (if thats what they are called) - im basically trying to get a url that i can forward people to to get them to log into twitter / approve my app in their twitter account, the code is :

        string consumerKey = "consumer-key-here";
        string consumerSecret = "consumer-secret-here";
        OAuthTokenResponse requestToken = OAuthUtility.GetRequestToken(consumerKey, consumerSecret, "callback-url");
        Uri authorizationUrl = OAuthUtility.BuildAuthorizationUri(requestToken.Token);

consumer-key-here, consumer-secret-here and callback-url are all filled in the correct values in my actual code. Im using twitterizer.

There is an error on the 3rd line in the above code saying : The remote server returned an error: (401) Unauthorized.


Bueno a mi también me dio ese error pero en código python y se resolvió al actualizar la fecha y hora en el computador…