C# 클래스 WriteAmeer.NRightApi

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

공개 프로퍼티들

프로퍼티 타입 설명
HttpClient Microsoft.Http.HttpClient

공개 메소드들

메소드 설명
CheckHttpResponseForErrors ( HttpResponseMessage response ) : void
DeleteRequest ( string apiString, string parameters ) : HttpResponseMessage
DisplayRestResponse ( HttpResponseMessage restResponse ) : void
GetRequest ( string apiString, string parameters ) : HttpResponseMessage
Login ( string username, string password ) : HttpResponseMessage
NRightApi ( string account ) : System
NRightApi ( string account, string version ) : System
PostRequest ( string apiString, string parameters ) : HttpResponseMessage
PutRequest ( string apiString, string parameters ) : HttpResponseMessage
Send ( HttpMethod httpMethod, string restMethod ) : HttpResponseMessage
SendFormData ( HttpMethod httpMethod, string restMethod, string parameters ) : HttpResponseMessage
SendRequest ( HttpMethod httpMethod, string restMethod, string parameters ) : HttpResponseMessage
SetAuthCookies ( string cookieString ) : void

메소드 상세

CheckHttpResponseForErrors() 공개 정적인 메소드

public static CheckHttpResponseForErrors ( HttpResponseMessage response ) : void
response Microsoft.Http.HttpResponseMessage
리턴 void

DeleteRequest() 공개 메소드

public DeleteRequest ( string apiString, string parameters ) : HttpResponseMessage
apiString string
parameters string
리턴 Microsoft.Http.HttpResponseMessage

DisplayRestResponse() 공개 정적인 메소드

public static DisplayRestResponse ( HttpResponseMessage restResponse ) : void
restResponse Microsoft.Http.HttpResponseMessage
리턴 void

GetRequest() 공개 메소드

public GetRequest ( string apiString, string parameters ) : HttpResponseMessage
apiString string
parameters string
리턴 Microsoft.Http.HttpResponseMessage

Login() 공개 메소드

public Login ( string username, string password ) : HttpResponseMessage
username string
password string
리턴 Microsoft.Http.HttpResponseMessage

NRightApi() 공개 메소드

public NRightApi ( string account ) : System
account string
리턴 System

NRightApi() 공개 메소드

public NRightApi ( string account, string version ) : System
account string
version string
리턴 System

PostRequest() 공개 메소드

public PostRequest ( string apiString, string parameters ) : HttpResponseMessage
apiString string
parameters string
리턴 Microsoft.Http.HttpResponseMessage

PutRequest() 공개 메소드

public PutRequest ( string apiString, string parameters ) : HttpResponseMessage
apiString string
parameters string
리턴 Microsoft.Http.HttpResponseMessage

Send() 공개 메소드

public Send ( HttpMethod httpMethod, string restMethod ) : HttpResponseMessage
httpMethod HttpMethod
restMethod string
리턴 Microsoft.Http.HttpResponseMessage

SendFormData() 공개 정적인 메소드

public static SendFormData ( HttpMethod httpMethod, string restMethod, string parameters ) : HttpResponseMessage
httpMethod HttpMethod
restMethod string
parameters string
리턴 Microsoft.Http.HttpResponseMessage

SendRequest() 공개 정적인 메소드

public static SendRequest ( HttpMethod httpMethod, string restMethod, string parameters ) : HttpResponseMessage
httpMethod HttpMethod
restMethod string
parameters string
리턴 Microsoft.Http.HttpResponseMessage

SetAuthCookies() 공개 정적인 메소드

public static SetAuthCookies ( string cookieString ) : void
cookieString string
리턴 void

프로퍼티 상세

HttpClient 공개적으로 정적으로 프로퍼티

public static HttpClient,Microsoft.Http HttpClient
리턴 Microsoft.Http.HttpClient