Click here to Skip to main content
15,919,479 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Somebody can explain me this code :

auth = new MvcAuthorizer
               Credentials = credentials               


var auth = new MvcAuthorizer
                Credentials = new SessionStateCredentials()
                    ConsumerKey = this.client.ConsumerKey,
                    ConsumerSecret = this.client.ConsumerSecret,
                    OAuthToken = identity.Token.Token


1 solution

You have an overloaded constructor here. The first is taking in a set of credentials while the second is building that set of credentials. The overarching idea behind this code is that Twitter applications need to use an authentication token to connect to most Twitter services. This is so that the applications can be rate-controlled. The second code bit is building that authorization credenial set. To get these credentials, you need to contact Twitter to set up a developer account.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900