C# 클래스 ExtApi.Engine.ApiRunner

파일 보기 프로젝트 열기: KallDrexx/ExtApi 1 사용 예제들

공개 메소드들

메소드 설명
ExecuteApiCall ( string apiUrl, IList parameters, RequestMethod method, string username = "", string password = "" ) : ExtApi.Engine.Data.ExtApiCallResult

Performs an api call on the specified URL

ExecuteOAuthApiCall ( string apiUrl, IList parameters, RequestMethod method, string consumerKey, string consumerSecret, string accessToken, string tokenSecret ) : ExtApi.Engine.Data.ExtApiCallResult

Performs an OAuthed api call with the specified access token

보호된 메소드들

메소드 설명
BuildGetUrl ( string apiUrl, IList parameters ) : string

Builds a GET URL based on the specified api URL and the passed in parameters

ConvertRequestMethod ( RequestMethod method ) : Method
CreateExtApiCallResult ( RestResponse response ) : ExtApi.Engine.Data.ExtApiCallResult
HandleWebException ( WebException ex ) : ExtApi.Engine.Data.ExtApiCallResult

메소드 상세

BuildGetUrl() 보호된 메소드

Builds a GET URL based on the specified api URL and the passed in parameters
protected BuildGetUrl ( string apiUrl, IList parameters ) : string
apiUrl string
parameters IList
리턴 string

ConvertRequestMethod() 보호된 메소드

protected ConvertRequestMethod ( RequestMethod method ) : Method
method RequestMethod
리턴 Method

CreateExtApiCallResult() 보호된 메소드

protected CreateExtApiCallResult ( RestResponse response ) : ExtApi.Engine.Data.ExtApiCallResult
response RestSharp.RestResponse
리턴 ExtApi.Engine.Data.ExtApiCallResult

ExecuteApiCall() 공개 메소드

Performs an api call on the specified URL
public ExecuteApiCall ( string apiUrl, IList parameters, RequestMethod method, string username = "", string password = "" ) : ExtApi.Engine.Data.ExtApiCallResult
apiUrl string
parameters IList
method RequestMethod
username string
password string
리턴 ExtApi.Engine.Data.ExtApiCallResult

ExecuteOAuthApiCall() 공개 메소드

Performs an OAuthed api call with the specified access token
Thrown when no token manager has been specified
public ExecuteOAuthApiCall ( string apiUrl, IList parameters, RequestMethod method, string consumerKey, string consumerSecret, string accessToken, string tokenSecret ) : ExtApi.Engine.Data.ExtApiCallResult
apiUrl string
parameters IList
method RequestMethod
consumerKey string
consumerSecret string
accessToken string
tokenSecret string
리턴 ExtApi.Engine.Data.ExtApiCallResult

HandleWebException() 보호된 메소드

protected HandleWebException ( WebException ex ) : ExtApi.Engine.Data.ExtApiCallResult
ex System.Net.WebException
리턴 ExtApi.Engine.Data.ExtApiCallResult