Click here to Skip to main content
13,192,426 members (47,239 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
Somebody can explain me this code :

auth = new MvcAuthorizer
           {
               Credentials = credentials               
           };
 
           auth.CompleteAuthorization(Request.Url);



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




Thanks,
Posted 15-Jun-12 5:07am
saisne518

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web02 | 2.8.171017.2 | Last Updated 15 Jun 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100