![]() |
CoreTweet
2.0.0-beta.2
Yet another .NET Twitter Library
|
Represents the OAuth tokens. More...
Public Member Functions | |
Tokens () | |
Initializes a new instance of the Tokens class. More... | |
Tokens (Tokens e) | |
Initializes a new instance of the Tokens class with a specified token. More... | |
override string | CreateAuthorizationHeader (MethodType type, Uri url, IEnumerable< KeyValuePair< string, object >> parameters) |
Creates a string for Authorization header for OAuth 1.0A. More... | |
override string | ToString () |
Returns a string that represents the current Tokens. More... | |
![]() | |
Task< AsyncResponse > | SendRequestAsync (MethodType type, string url, CancellationToken cancellationToken=default(CancellationToken), params Expression< Func< string, object >>[] parameters) |
Sends a request to the specified url with the specified parameters as an asynchronous operation. More... | |
Task< AsyncResponse > | SendRequestAsync (MethodType type, string url, object parameters, CancellationToken cancellationToken=default(CancellationToken)) |
Sends a request to the specified url with the specified parameters as an asynchronous operation. More... | |
Task< AsyncResponse > | SendRequestAsync (MethodType type, string url, IDictionary< string, object > parameters, CancellationToken cancellationToken=default(CancellationToken)) |
Sends a request to the specified url with the specified parameters as an asynchronous operation. More... | |
Task< AsyncResponse > | SendStreamingRequestAsync (MethodType type, string url, IEnumerable< KeyValuePair< string, object >> parameters, CancellationToken cancellationToken=default(CancellationToken)) |
Sends a streaming request to the specified url with the specified parameters as an asynchronous operation. More... | |
Task< AsyncResponse > | PostContentAsync (string url, string contentType, byte[] content, CancellationToken cancellationToken=default(CancellationToken)) |
Sends a request to the specified url with the specified content as an asynchronous operation. More... | |
HttpWebResponse | SendRequest (MethodType type, string url, params Expression< Func< string, object >>[] parameters) |
Sends a request to the specified url with the specified parameters. More... | |
HttpWebResponse | SendRequest (MethodType type, string url, object parameters) |
Sends a request to the specified url with the specified parameters. More... | |
HttpWebResponse | SendRequest (MethodType type, string url, IDictionary< string, object > parameters) |
Sends a request to the specified url with the specified parameters. More... | |
HttpWebResponse | SendStreamingRequest (MethodType type, string url, IEnumerable< KeyValuePair< string, object >> parameters) |
Sends a streaming request to the specified url with the specified parameters. More... | |
HttpWebResponse | PostContent (string url, string contentType, byte[] content) |
Sends a request to the specified url with the specified content. More... | |
Static Public Member Functions | |
static Tokens | Create (string consumerKey, string consumerSecret, string accessToken, string accessSecret, long userID=0, string screenName=null) |
Makes an instance of Tokens. Tokens.Create will not fetch UserId and ScreenName automatically. If you need them, call Rest.Account.VerifyCredentials(object). More... | |
Properties | |
string | AccessToken [get, set] |
Gets or sets the access token. More... | |
string | AccessTokenSecret [get, set] |
Gets or sets the access token secret. More... | |
long | UserId [get, set] |
Gets or sets the user ID. If you have used Tokens.Create and not assigned the parameter 'userID', this will be 0 . More... | |
string | ScreenName [get, set] |
Gets or sets the screen name. If you have used Tokens.Create and not assigned the parameter 'screenName', this will be null . More... | |
![]() | |
string | ConsumerKey [get, set] |
Gets or sets the consumer key. More... | |
string | ConsumerSecret [get, set] |
Gets or sets the consumer secret. More... | |
ConnectionOptions | ConnectionOptions [get, set] |
Gets or sets the options of the connection. More... | |
Additional Inherited Members | |
![]() | |
V2.V2Api | V2 => new V2.V2Api(this) |
Account | Account => new Account(this) |
Gets the wrapper of account. More... | |
Application | Application => new Application(this) |
Gets the wrapper of application. More... | |
Blocks | Blocks => new Blocks(this) |
Gets the wrapper of blocks. More... | |
Collections | Collections => new Collections(this) |
Gets the wrapper of collections. More... | |
DirectMessages | DirectMessages => new DirectMessages(this) |
Gets the wrapper of direct_messages. More... | |
Favorites | Favorites => new Favorites(this) |
Gets the wrapper of favorites. More... | |
Friends | Friends => new Friends(this) |
Gets the wrapper of friends. More... | |
Followers | Followers => new Followers(this) |
Gets the wrapper of followers. More... | |
Friendships | Friendships => new Friendships(this) |
Gets the wrapper of friendships. More... | |
Geo | Geo => new Geo(this) |
Gets the wrapper of geo. More... | |
Help | Help => new Help(this) |
Gets the wrapper of help. More... | |
Lists | Lists => new Lists(this) |
Gets the wrapper of lists. More... | |
Media | Media => new Media(this) |
Gets the wrapper of media. More... | |
Mutes | Mutes => new Mutes(this) |
Gets the wrapper of mutes. More... | |
Search | Search => new Search(this) |
Gets the wrapper of search. More... | |
SavedSearches | SavedSearches => new SavedSearches(this) |
Gets the wrapper of saved_searches. More... | |
Statuses | Statuses => new Statuses(this) |
Gets the wrapper of statuses. More... | |
Trends | Trends => new Trends(this) |
Gets the wrapper of trends. More... | |
Tweets | Tweets => new Tweets(this) |
Gets the wrapper of tweets. More... | |
Users | Users => new Users(this) |
Gets the wrapper of users. More... | |
StreamingApi | Streaming => new StreamingApi(this) |
Gets the wrapper of the Streaming API. More... | |
AccountActivityApi | AccountActivity => new AccountActivityApi(this) |
Gets the wrapper of the Account Activity API. More... | |
![]() | |
TokensBase () | |
Initializes a new instance of the TokensBase class. More... | |
Represents the OAuth tokens.
|
inline |
Initializes a new instance of the Tokens class.
|
inline |
Initializes a new instance of the Tokens class with a specified token.
e | The token. |
|
inlinestatic |
Makes an instance of Tokens. Tokens.Create will not fetch UserId and ScreenName automatically. If you need them, call Rest.Account.VerifyCredentials(object).
consumerKey | The consumer key. |
consumerSecret | The consumer secret. |
accessToken | The access token. |
accessSecret | The access secret. |
userID | The user's ID. |
screenName | The user's screen name. |
|
inlinevirtual |
Creates a string for Authorization header for OAuth 1.0A.
type | The Type of HTTP request. |
url | The URL. |
parameters | The parameters. |
Implements CoreTweet.Core.TokensBase.
|
inline |
|
getset |
Gets or sets the access token.
|
getset |
Gets or sets the access token secret.
|
getset |
Gets or sets the screen name. If you have used Tokens.Create and not assigned the parameter 'screenName', this will be null
.
|
getset |
Gets or sets the user ID. If you have used Tokens.Create and not assigned the parameter 'userID', this will be 0
.