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
Afficher le fichier Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Свойство Type Description
m_sSecret String
m_sToken String

Méthodes publiques

Méthode 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

Méthode Description
AssertValid ( ) : void

Method Details

Delete() public static méthode

public static Delete ( ) : void
Résultat void

Exists() public static méthode

public static Exists ( ) : System.Boolean
Résultat System.Boolean

GetAccessTokenFilePath() public static méthode

public static GetAccessTokenFilePath ( ) : String
Résultat String

Save() public méthode

public Save ( String token, String secret ) : void
token String
secret String
Résultat void

TryLoad() public méthode

public TryLoad ( String &token, String &secret ) : System.Boolean
token String
secret String
Résultat System.Boolean

TwitterAccessToken() public méthode

Initializes a new instance of the TwitterAccessToken class.
public TwitterAccessToken ( ) : System
Résultat System

Property Details

m_sSecret protected_oe property

protected String m_sSecret
Résultat String

m_sToken protected_oe property

protected String m_sToken
Résultat String