Exemplo n.º 1
0
        public string Get(string path, string acceptType)
        {
            support.LogRequest("GET", path);

            byte[] responseBytes = HttpMethods.GetHttpJson(apiToken, path, acceptType);
            return(Converter.ToString(responseBytes));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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)));
        }
Exemplo n.º 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);
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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);
        }