C# Class BoxKite.Twitter.UserSession

Inheritance: ApplicationSession, IUserSession
Mostrar archivo Open project: nickhodge/BoxKite.Twitter Class Usage Examples

Public Methods

Method Description
CreateGet ( string url, string>.SortedDictionary parameters ) : HttpRequestMessage
CreatePost ( string url, string>.SortedDictionary parameters ) : HttpRequestMessage
GenerateNoonce ( ) : string
GenerateTimestamp ( ) : string
GetAsync ( string url, string>.SortedDictionary parameters ) : Task

Use OAuth1.0a auth to do more intensive reads

PostAsync ( string url, string>.SortedDictionary parameters ) : Task

Use OAuth1.0a auth to do more intensive POST

PostFileAsync ( string url, string>.SortedDictionary parameters, string fileName, string fileContentsKey, byte fileContents = null, Stream srImageStream = null ) : Task
UserSession ( TwitterCredentials credentials, IPlatformAdaptor platformAdaptor, int _waitTimeoutSeconds = 30 ) : System
UserSession ( string clientID, string clientSecret, IPlatformAdaptor platformAdaptor, int _waitTimeoutSeconds = 30 ) : System
UserSession ( string clientID, string clientSecret, string bearerToken, IPlatformAdaptor platformAdaptor, int _waitTimeoutSeconds = 30 ) : System
UserStreamBuilder ( ) : IUserStream

Private Methods

Method Description
BuildAuthenticatedResult ( string fullUrl, string>.IEnumerable parameters, string method, bool multipartform = false ) : OAuth
FileDataContent ( byte fileData = null, Stream srReader = null ) : System.Net.Http.ByteArrayContent

Method Details

CreateGet() public method

public CreateGet ( string url, string>.SortedDictionary parameters ) : HttpRequestMessage
url string
parameters string>.SortedDictionary
return System.Net.Http.HttpRequestMessage

CreatePost() public method

public CreatePost ( string url, string>.SortedDictionary parameters ) : HttpRequestMessage
url string
parameters string>.SortedDictionary
return System.Net.Http.HttpRequestMessage

GenerateNoonce() public method

public GenerateNoonce ( ) : string
return string

GenerateTimestamp() public method

public GenerateTimestamp ( ) : string
return string

GetAsync() public method

Use OAuth1.0a auth to do more intensive reads
public GetAsync ( string url, string>.SortedDictionary parameters ) : Task
url string URL to call
parameters string>.SortedDictionary Params to send
return Task

PostAsync() public method

Use OAuth1.0a auth to do more intensive POST
public PostAsync ( string url, string>.SortedDictionary parameters ) : Task
url string URL to call
parameters string>.SortedDictionary Params to send
return Task

PostFileAsync() public method

public PostFileAsync ( string url, string>.SortedDictionary parameters, string fileName, string fileContentsKey, byte fileContents = null, Stream srImageStream = null ) : Task
url string
parameters string>.SortedDictionary
fileName string
fileContentsKey string
fileContents byte
srImageStream Stream
return Task

UserSession() public method

public UserSession ( TwitterCredentials credentials, IPlatformAdaptor platformAdaptor, int _waitTimeoutSeconds = 30 ) : System
credentials BoxKite.Twitter.Models.TwitterCredentials
platformAdaptor IPlatformAdaptor
_waitTimeoutSeconds int
return System

UserSession() public method

public UserSession ( string clientID, string clientSecret, IPlatformAdaptor platformAdaptor, int _waitTimeoutSeconds = 30 ) : System
clientID string
clientSecret string
platformAdaptor IPlatformAdaptor
_waitTimeoutSeconds int
return System

UserSession() public method

public UserSession ( string clientID, string clientSecret, string bearerToken, IPlatformAdaptor platformAdaptor, int _waitTimeoutSeconds = 30 ) : System
clientID string
clientSecret string
bearerToken string
platformAdaptor IPlatformAdaptor
_waitTimeoutSeconds int
return System

UserStreamBuilder() public method

public UserStreamBuilder ( ) : IUserStream
return IUserStream