C# Class WriteAmeer.NRightApi

Mostrar archivo Open project: writeameer/NRightAPI Class Usage Examples

Public Properties

Property Type Description
HttpClient Microsoft.Http.HttpClient

Public Methods

Method Description
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

Method Details

CheckHttpResponseForErrors() public static method

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

DeleteRequest() public method

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

DisplayRestResponse() public static method

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

GetRequest() public method

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

Login() public method

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

NRightApi() public method

public NRightApi ( string account ) : System
account string
return System

NRightApi() public method

public NRightApi ( string account, string version ) : System
account string
version string
return System

PostRequest() public method

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

PutRequest() public method

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

Send() public method

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

SendFormData() public static method

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

SendRequest() public static method

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

SetAuthCookies() public static method

public static SetAuthCookies ( string cookieString ) : void
cookieString string
return void

Property Details

HttpClient public_oe static_oe property

public static HttpClient,Microsoft.Http HttpClient
return Microsoft.Http.HttpClient