C# 클래스 OAuth.OAuthRequest

상속: OAuthBase
파일 보기 프로젝트 열기: samo9789/sharpOAuth 1 사용 예제들

공개 메소드들

메소드 설명
OAuthRequest ( OAuthConsumer consumer, string debugType ) : System
request ( Uri url, string httpMethod, string oauthToken, string oauthTokenSecret, List extraParameters ) : string

Calls a webservice specified by its url and passing it the parameters

비공개 메소드들

메소드 설명
_generateNonce ( ) : string

Generates an OAuth Nonce

_generateSignature ( Uri url, string httpMethod, List parameters, string signatureMethod, string consumerSecret, string oauth_token, string &normalizedUrl, string &normalizedUrlWithParameters ) : string

Generates the request signature for OAuth call

_generateSignatureBase ( Uri url, string httpMethod, List parameters, string consumerSecret, string &normalizedUrl, string &normalizedRequestParameters ) : string

Normalizes the query parameters by sorting them according to the OAuth specification Generates the signature base

_generateSignatureUsingHash ( string signatureBase, HMACSHA1 hmacsha1 ) : string

Generates the request signature using the hash

_generateTimestamp ( ) : string

Generates the OAuth timestamp in number of seconds since January 1st 1970

메소드 상세

OAuthRequest() 공개 메소드

public OAuthRequest ( OAuthConsumer consumer, string debugType ) : System
consumer OAuthConsumer
debugType string
리턴 System

request() 공개 메소드

Calls a webservice specified by its url and passing it the parameters
public request ( Uri url, string httpMethod, string oauthToken, string oauthTokenSecret, List extraParameters ) : string
url System.Uri Url of the service to call
httpMethod string
oauthToken string oauth token (if exists)
oauthTokenSecret string oauth token secret (if exists)
extraParameters List the list of parameters to send the service
리턴 string