C# 클래스 Smrf.SocialNetworkLib.Twitter.oAuthTwitter

상속: OAuthBase
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

공개 메소드들

메소드 설명
AccessTokenGet ( string authToken, string verifier ) : void

Exchange the request token for an access token.

AuthorizationLinkGet ( ) : string

Get the link to Twitter's authorization page for this application.

ConstructAuthWebRequest ( Method method, string url, string postData, String &authorizedUrl, String &authorizedPostData ) : void

Constructs the URL and POST data to use for a web request using oAuth.

WebRequest ( Method method, string url, string postData ) : string

Web Request Wrapper

WebResponseGet ( HttpWebRequest webRequest ) : string

Process the web response.

oAuthTwitter ( String userAgent, Int32 timeoutMs ) : System
oAuthWebRequest ( Method method, string url, string postData ) : string

Submit a web request using oAuth.

메소드 상세

AccessTokenGet() 공개 메소드

Exchange the request token for an access token.
public AccessTokenGet ( string authToken, string verifier ) : void
authToken string The oauth_token is supplied by Twitter's authorization page following the callback.
verifier string
리턴 void

AuthorizationLinkGet() 공개 메소드

Get the link to Twitter's authorization page for this application.
public AuthorizationLinkGet ( ) : string
리턴 string

ConstructAuthWebRequest() 공개 메소드

Constructs the URL and POST data to use for a web request using oAuth.
public ConstructAuthWebRequest ( Method method, string url, string postData, String &authorizedUrl, String &authorizedPostData ) : void
method Method GET or POST
url string The full url, including the querystring.
postData string Data to post (querystring format)
authorizedUrl String The url with authorization information added.
authorizedPostData String The POST data with authorization information added.
리턴 void

WebRequest() 공개 메소드

Web Request Wrapper
public WebRequest ( Method method, string url, string postData ) : string
method Method Http Method
url string Full url to the web resource
postData string Data to post in querystring format
리턴 string

WebResponseGet() 공개 메소드

Process the web response.
public WebResponseGet ( HttpWebRequest webRequest ) : string
webRequest System.Net.HttpWebRequest The request object.
리턴 string

oAuthTwitter() 공개 메소드

public oAuthTwitter ( String userAgent, Int32 timeoutMs ) : System
userAgent String
timeoutMs System.Int32
리턴 System

oAuthWebRequest() 공개 메소드

Submit a web request using oAuth.
public oAuthWebRequest ( Method method, string url, string postData ) : string
method Method GET or POST
url string The full url, including the querystring.
postData string Data to post (querystring format)
리턴 string