Beispiel #1
0
        public string Get(string path, string acceptType)
        {
            support.LogRequest("GET", path);

            byte[] responseBytes = HttpMethods.GetHttpJson(apiToken, path, acceptType);
            return(Converter.ToString(responseBytes));
        }
Beispiel #2
0
        public DownloadedFile GetBytes(string path, string acceptType)
        {
            support.LogRequest("GET", path);

            if (proxyConfiguration != null)
            {
                HttpMethods.proxyConfiguration = proxyConfiguration;
            }

            return(HttpMethods.GetHttpJson(apiToken, path, acceptType, additionalHeaders));
        }
Beispiel #3
0
        public DownloadedFile GetBytes(string path, string acceptType)
        {
            support.LogRequest("GET", path);

            if (proxyConfiguration != null)
            {
                HttpMethods.ProxyConfiguration = proxyConfiguration;
            }

            return(HttpMethods.GetHttpJson(apiKey, path, acceptType, SetupAuthorization(null)));
        }
Beispiel #4
0
        public string Get(string path)
        {
            support.LogRequest("GET", path);

            byte[] responseBytes = HttpMethods.GetHttpJson(apiToken, path, "application/json");
            string response      = Converter.ToString(responseBytes);

            support.LogResponse(response);

            return(response);
        }
Beispiel #5
0
        public string Get(string path, string acceptType)
        {
            support.LogRequest("GET", path);

            if (proxyConfiguration != null)
            {
                HttpMethods.proxyConfiguration = proxyConfiguration;
            }

            byte[] responseBytes = HttpMethods.GetHttpJson(apiToken, path, acceptType);
            return(Converter.ToString(responseBytes));
        }
Beispiel #6
0
        public string Get(string path, string acceptType)
        {
            support.LogRequest("GET", path);

            if (proxyConfiguration != null)
            {
                HttpMethods.ProxyConfiguration = proxyConfiguration;
            }

            DownloadedFile responseBytes = HttpMethods.GetHttpJson(apiKey, path, acceptType, SetupAuthorization(null));

            return(Converter.ToString(responseBytes));
        }
Beispiel #7
0
        public string Get(string path)
        {
            support.LogRequest("GET", path);

            if (proxyConfiguration != null)
            {
                HttpMethods.proxyConfiguration = proxyConfiguration;
            }

            DownloadedFile responseBytes = HttpMethods.GetHttpJson(apiToken, path, HttpMethods.ESL_ACCEPT_TYPE_APPLICATION_JSON, additionalHeaders);
            string         response      = Converter.ToString(responseBytes);

            support.LogResponse(response);

            return(response);
        }