C# Class Twitter.API

Show file Open project: amzeratul/ggj16

Public Methods

Method Description
GetAccessToken ( string consumerKey, string consumerSecret, string requestToken, string pin, AccessTokenCallback callback ) : IEnumerator
GetRequestToken ( string consumerKey, string consumerSecret, RequestTokenCallback callback ) : IEnumerator
OpenAuthorizationPage ( string requestToken ) : void
PostImageTweet ( string text, byte image, string consumerKey, string consumerSecret, AccessTokenResponse response, PostTweetCallback callback ) : IEnumerator
PostTweet ( string text, string consumerKey, string consumerSecret, AccessTokenResponse response, PostTweetCallback callback ) : IEnumerator

Private Methods

Method Description
AddDefaultOAuthParams ( string>.Dictionary parameters, string consumerKey, string consumerSecret ) : void
GenerateNonce ( ) : string
GenerateSignature ( string httpMethod, string url, string>.Dictionary parameters ) : string
GenerateTimeStamp ( ) : string
GetFinalOAuthHeader ( string HTTPRequestType, string URL, string>.Dictionary parameters ) : string
GetHeaderWithAccessToken ( string httpRequestType, string apiURL, string consumerKey, string consumerSecret, AccessTokenResponse response, string>.Dictionary parameters ) : string
NormalizeUrl ( Uri url ) : string
UrlEncode ( string>.IEnumerable parameters ) : string
UrlEncode ( string value ) : string
WWWAccessToken ( string consumerKey, string consumerSecret, string requestToken, string pin ) : WWW
WWWRequestToken ( string consumerKey, string consumerSecret ) : WWW

Method Details

GetAccessToken() public static method

public static GetAccessToken ( string consumerKey, string consumerSecret, string requestToken, string pin, AccessTokenCallback callback ) : IEnumerator
consumerKey string
consumerSecret string
requestToken string
pin string
callback AccessTokenCallback
return IEnumerator

GetRequestToken() public static method

public static GetRequestToken ( string consumerKey, string consumerSecret, RequestTokenCallback callback ) : IEnumerator
consumerKey string
consumerSecret string
callback RequestTokenCallback
return IEnumerator

OpenAuthorizationPage() public static method

public static OpenAuthorizationPage ( string requestToken ) : void
requestToken string
return void

PostImageTweet() public static method

public static PostImageTweet ( string text, byte image, string consumerKey, string consumerSecret, AccessTokenResponse response, PostTweetCallback callback ) : IEnumerator
text string
image byte
consumerKey string
consumerSecret string
response AccessTokenResponse
callback PostTweetCallback
return IEnumerator

PostTweet() public static method

public static PostTweet ( string text, string consumerKey, string consumerSecret, AccessTokenResponse response, PostTweetCallback callback ) : IEnumerator
text string
consumerKey string
consumerSecret string
response AccessTokenResponse
callback PostTweetCallback
return IEnumerator