Click here to Skip to main content
12,555,932 members (56,888 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET API twitter
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

Posted 15-Jun-12 5:07am

1 solution

Rate this: bad
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.

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 | Mobile
Web02 | 2.8.161021.1 | Last Updated 15 Jun 2012
Copyright © CodeProject, 1999-2016
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