C# Class WriteAmeer.NRightApi

Afficher le fichier Open project: writeameer/NRightAPI Class Usage Examples

Méthodes publiques

Свойство Type Description
HttpClient Microsoft.Http.HttpClient

Méthodes publiques

Méthode 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 méthode

public static CheckHttpResponseForErrors ( HttpResponseMessage response ) : void
response Microsoft.Http.HttpResponseMessage
Résultat void

DeleteRequest() public méthode

public DeleteRequest ( string apiString, string parameters ) : HttpResponseMessage
apiString string
parameters string
Résultat Microsoft.Http.HttpResponseMessage

DisplayRestResponse() public static méthode

public static DisplayRestResponse ( HttpResponseMessage restResponse ) : void
restResponse Microsoft.Http.HttpResponseMessage
Résultat void

GetRequest() public méthode

public GetRequest ( string apiString, string parameters ) : HttpResponseMessage
apiString string
parameters string
Résultat Microsoft.Http.HttpResponseMessage

Login() public méthode

public Login ( string username, string password ) : HttpResponseMessage
username string
password string
Résultat Microsoft.Http.HttpResponseMessage

NRightApi() public méthode

public NRightApi ( string account ) : System
account string
Résultat System

NRightApi() public méthode

public NRightApi ( string account, string version ) : System
account string
version string
Résultat System

PostRequest() public méthode

public PostRequest ( string apiString, string parameters ) : HttpResponseMessage
apiString string
parameters string
Résultat Microsoft.Http.HttpResponseMessage

PutRequest() public méthode

public PutRequest ( string apiString, string parameters ) : HttpResponseMessage
apiString string
parameters string
Résultat Microsoft.Http.HttpResponseMessage

Send() public méthode

public Send ( HttpMethod httpMethod, string restMethod ) : HttpResponseMessage
httpMethod HttpMethod
restMethod string
Résultat Microsoft.Http.HttpResponseMessage

SendFormData() public static méthode

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

SendRequest() public static méthode

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

SetAuthCookies() public static méthode

public static SetAuthCookies ( string cookieString ) : void
cookieString string
Résultat void

Property Details

HttpClient public_oe static_oe property

public static HttpClient,Microsoft.Http HttpClient
Résultat Microsoft.Http.HttpClient