C# Class ReevooMark.ReevooClient

Simple HTTP agent used for getting Reevoo Mark data. ReevooClient uses a System.Net.WebRequest to cache the results of an HTTP GET request if appropriate. To set a default proxy for all your application's System.Net.WebRequests, (including those used by ReevooClient), set the property System.Net.WebRequest.DefaultWebProxy before calling ReevooClient.ObtainReevooMarkData().
Mostra file Open project: reevoo/reevoomark-dotnet-api Class Usage Examples

Public Methods

Method Description
ObtainReevooMarkData ( Parameters params_, String baseUri_ ) : ReevooMarkData

Get ReevooMark data for a given product and trkref.

ObtainReevooMarkData ( string trkref_, string sku_, String baseUri_ ) : ReevooMarkData
ReevooClient ( ) : System

Construct a ReevooClient with the default timeout.

ReevooClient ( int timeout_ ) : System

Construct a ReevooClient with the given timeout in milliseconds.

Private Methods

Method Description
GetBestPrice ( WebHeaderCollection webHeaderCollection_ ) : String

Returns the 'best price' member from the returned data structure

GetOverallScore ( WebHeaderCollection webHeaderCollection_ ) : string

Returns the 'overall score' member from the returned data structure

GetReviewCount ( WebHeaderCollection webHeaderCollection ) : int

Returns the 'review count' member from the returned data structure

GetScoreCount ( WebHeaderCollection webHeaderCollection_ ) : int

Returns the 'score count' member from the returned data structure

ObtainReevooMarkDataInternal ( Parameters params_, String baseUri_ ) : ReevooMarkData

Internal method which does the actual work of getting the Mark data.

Method Details

ObtainReevooMarkData() public method

Get ReevooMark data for a given product and trkref.
If anything bad happened whilst getting mark data
public ObtainReevooMarkData ( Parameters params_, String baseUri_ ) : ReevooMarkData
params_ Parameters
baseUri_ String The base URI for the request - provided by Reevoo.
return ReevooMarkData

ObtainReevooMarkData() public method

public ObtainReevooMarkData ( string trkref_, string sku_, String baseUri_ ) : ReevooMarkData
trkref_ string
sku_ string
baseUri_ String
return ReevooMarkData

ReevooClient() public method

Construct a ReevooClient with the default timeout.
public ReevooClient ( ) : System
return System

ReevooClient() public method

Construct a ReevooClient with the given timeout in milliseconds.
public ReevooClient ( int timeout_ ) : System
timeout_ int
return System