CoreTweet  0.7.0
Yet another .NET Twitter Library
Public Member Functions | Static Public Member Functions | Properties | List of all members
CoreTweet.OAuth2Token Class Reference

The OAuth2 token, which is usually used for Application-only authentication. More...

Inheritance diagram for CoreTweet.OAuth2Token:
CoreTweet.Core.TokensBase

Public Member Functions

 OAuth2Token ()
 Initializes a new instance of the OAuth2Token class. More...
 
 OAuth2Token (OAuth2Token e)
 Initializes a new instance of the OAuth2Token class with a specified token. More...
 
override string CreateAuthorizationHeader (MethodType type, Uri url, IEnumerable< KeyValuePair< string, object >> parameters)
 Creates a string for Authorization header including bearer token. More...
 
override string ToString ()
 Returns a string that represents the current Tokens. More...
 
- Public Member Functions inherited from CoreTweet.Core.TokensBase
Task< AsyncResponseSendRequestAsync (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< AsyncResponseSendRequestAsync (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< AsyncResponseSendRequestAsync (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< AsyncResponseSendStreamingRequestAsync (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< AsyncResponsePostContentAsync (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 OAuth2Token Create (string consumerKey, string consumerSecret, string bearer)
 Makes an instance of OAuth2Tokens. More...
 

Properties

string BearerToken [get, set]
 Gets or sets the access token. More...
 
- Properties inherited from CoreTweet.Core.TokensBase
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

- Public Attributes inherited from CoreTweet.Core.TokensBase
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...
 
Users Users => new Users(this)
 Gets the wrapper of users. More...
 
StreamingApi Streaming => new StreamingApi(this)
 Gets the wrapper of the Streaming API. More...
 
- Protected Member Functions inherited from CoreTweet.Core.TokensBase
 TokensBase ()
 Initializes a new instance of the TokensBase class. More...
 

Detailed Description

The OAuth2 token, which is usually used for Application-only authentication.

Constructor & Destructor Documentation

CoreTweet.OAuth2Token.OAuth2Token ( )
inline

Initializes a new instance of the OAuth2Token class.

CoreTweet.OAuth2Token.OAuth2Token ( OAuth2Token  e)
inline

Initializes a new instance of the OAuth2Token class with a specified token.

Parameters
eThe token.

Member Function Documentation

static OAuth2Token CoreTweet.OAuth2Token.Create ( string  consumerKey,
string  consumerSecret,
string  bearer 
)
inlinestatic

Makes an instance of OAuth2Tokens.

Parameters
consumerKeyThe consumer key.
consumerSecretThe consumer secret.
bearerThe bearer token.
override string CoreTweet.OAuth2Token.CreateAuthorizationHeader ( MethodType  type,
Uri  url,
IEnumerable< KeyValuePair< string, object >>  parameters 
)
inlinevirtual

Creates a string for Authorization header including bearer token.

Parameters
typeThe type of the HTTP request.
urlThe URL.
parametersThe parameters.
Returns
A string for Authorization header.

Implements CoreTweet.Core.TokensBase.

override string CoreTweet.OAuth2Token.ToString ( )
inline

Returns a string that represents the current Tokens.

Returns
A string that represents the current Tokens.

Property Documentation

string CoreTweet.OAuth2Token.BearerToken
getset

Gets or sets the access token.


The documentation for this class was generated from the following file: