C# Class Foretagsplatsen.Api2.OAuthRestClient

OAuth client to sign and execute REST requests.
Inheritance: RestClientBase
Show file Open project: foretagsplatsen/Foretagsplatsen-DotNet-API

Public Methods

Method Description
CreateLoginRequest ( LoginParameters loginParameters ) : HttpWebRequest
CreateRequest ( string httpMethod, string url, object arguments ) : HttpWebRequest

Add OAuth signing to requests and executes the request.

OAuthRestClient ( OAuthCredentials credentials, string baseUrl ) : System

Instantiate a new OAuthRestClient

Method Details

CreateLoginRequest() public method

public CreateLoginRequest ( LoginParameters loginParameters ) : HttpWebRequest
loginParameters LoginParameters
return System.Net.HttpWebRequest

CreateRequest() public method

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

OAuthRestClient() public method

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
return System