private string getEndpointResponse(string endpointSuffix)
{
fullUrl = getUrl(endpointSuffix + "?api_key=" + APIConstants.ApiKey );
WebClient client = instantiateClient();
try
{
response = client.DownloadString(fullUrl);
responseStatusCode = HttpStatusCode.OK;
}
catch (WebException ex)
{
response = extractErrorDetails(ex);
}
return response;
}