C# Class Smrf.NodeXL.GraphDataProviders.Twitter.TwitterAccessToken

Represents a Twitter OAuth access token.
Call Save when an OAuth access token is obtained from Twitter. Save saves the token to a file in the user's profile. Call TryLoad to determine whether a token has been obtained from Twitter.

(Confusingly, a Twitter "token" consists of both a token string and a secret string. The same word is used for both a single string and a pair of strings.)

Inheritance: Object
显示文件 Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Property Type Description
m_sSecret String
m_sToken String

Public Methods

Method Description
Delete ( ) : void
Exists ( ) : System.Boolean
GetAccessTokenFilePath ( ) : String
Save ( String token, String secret ) : void
TryLoad ( String &token, String &secret ) : System.Boolean
TwitterAccessToken ( ) : System

Initializes a new instance of the TwitterAccessToken class.

Private Methods

Method Description
AssertValid ( ) : void

Method Details

Delete() public static method

public static Delete ( ) : void
return void

Exists() public static method

public static Exists ( ) : System.Boolean
return System.Boolean

GetAccessTokenFilePath() public static method

public static GetAccessTokenFilePath ( ) : String
return String

Save() public method

public Save ( String token, String secret ) : void
token String
secret String
return void

TryLoad() public method

public TryLoad ( String &token, String &secret ) : System.Boolean
token String
secret String
return System.Boolean

TwitterAccessToken() public method

Initializes a new instance of the TwitterAccessToken class.
public TwitterAccessToken ( ) : System
return System

Property Details

m_sSecret protected_oe property

protected String m_sSecret
return String

m_sToken protected_oe property

protected String m_sToken
return String