ADPAPIClient.HttpClient.getEndpointResponse C# (CSharp) Method

getEndpointResponse() private method

private getEndpointResponse ( string endpointSuffix ) : string
endpointSuffix string
return string
        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;
        }