Contains security tokens nessisary for performing authorized actions against the Twitter API
| C# | Visual Basic |
[SerializableAttribute] public class OAuthTokens
<SerializableAttribute> _ Public Class OAuthTokens
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| OAuthTokens()()()() | Initializes a new instance of the OAuthTokens class | |
| AccessToken |
Gets or sets the access token.
| |
| AccessTokenSecret |
Gets or sets the access token secret.
| |
| ConsumerKey |
Gets or sets the consumer key.
| |
| ConsumerSecret |
Gets or sets the consumer secret.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString()()()() | (Inherited from Object.) |
To perform authorized actions, you must create a new OAuthTokens variable and supply values for the ConsumerKey, ConsumerSecret, AccessToken, and AccessTokenSecret properties, as follows:
CopyC#
CopyVB.NET
OAuthTokens tokens = new OAuthTokens(); tokens.AccessToken = "XXX"; tokens.AccessTokenSecret = "XXX"; tokens.ConsumerKey = "XXX"; tokens.ConsumerSecret = "XXX";
Dim tokens As new OAuthTokens(); tokens.AccessToken = "XXX" tokens.AccessTokenSecret = "XXX" tokens.ConsumerKey = "XXX" tokens.ConsumerSecret = "XXX"
| Object | |
| OAuthTokens | |