C# Class TestAPI.APIReader

Mostra file Open project: neomatrix369/RESTAPIUnifier Class Usage Examples

Public Methods

Method Description
APIReader ( string _url, string apiKey, outputFormat fmt ) : System
IsValidJSON ( string json ) : bool
IsValidXML ( string xml ) : bool
getFetchedResults ( ) : string
getOutput ( outputFormat fmt ) : string

Private Methods

Method Description
executeURL ( ) : string

Method Details

APIReader() public method

public APIReader ( string _url, string apiKey, outputFormat fmt ) : System
_url string
apiKey string
fmt outputFormat
return System

IsValidJSON() public method

public IsValidJSON ( string json ) : bool
json string
return bool

IsValidXML() public method

public IsValidXML ( string xml ) : bool
xml string
return bool

getFetchedResults() public method

public getFetchedResults ( ) : string
return string

getOutput() public method

public getOutput ( outputFormat fmt ) : string
fmt outputFormat
return string