C# Class Foretagsplatsen.Api.OAuthRestClient

OAuth client to sign and execute REST requests.
Inheritance: IRestClient
Afficher le fichier Open project: foretagsplatsen/Foretagsplatsen-DotNet-API

Méthodes publiques

Méthode Description
GetUri ( string url ) : Uri

Add OAuth signing to a requests but returns the Url instead of executing the request.

GetUri ( string url, object queryParameters ) : Uri

Add OAuth signing to a requests but returns the Url instead of executing the request.

MakeRequest ( string httpMethod, string url, object arguments ) : WebResponse

Add OAuth signing to requests and executes the request.

OAuthRestClient ( OAuthCredentials credentials, string baseUrl ) : System

Instantiate a new OAuthRestClient

Method Details

GetUri() public méthode

Add OAuth signing to a requests but returns the Url instead of executing the request.
public GetUri ( string url ) : Uri
url string Url to execute the request against.
Résultat System.Uri

GetUri() public méthode

Add OAuth signing to a requests but returns the Url instead of executing the request.
public GetUri ( string url, object queryParameters ) : Uri
url string Url to execute the request against.
queryParameters object Query arguments
Résultat System.Uri

MakeRequest() public méthode

Add OAuth signing to requests and executes the request.
public MakeRequest ( string httpMethod, string url, object arguments ) : WebResponse
httpMethod string HTTP Verb (GET, POST, PUT, DELETE)
url string Url to execute the request against.
arguments object Query arguments
Résultat System.Net.WebResponse

OAuthRestClient() public méthode

Instantiate a new OAuthRestClient
public OAuthRestClient ( OAuthCredentials credentials, string baseUrl ) : System
credentials OAuthCredentials OAuth credentials to use when signing requests.
baseUrl string Url needed when accessing building URLs for /// accessing the OAuthCredentialService
Résultat System