コード例 #1
0
        public async Task <string> Config(string key)
        {
            var action = "Config";
            var url    = base.BuildUrl(action, $"key={key}");

            return(await _httpExecuter.GetAsync(url));
        }
コード例 #2
0
        public async override Task <ApiResult> TransferAsync(string url, HttpRequestMessage request)
        {
            var headers = request.Headers.ToDictionary(key => key.Key, value => string.Join(" ", value.Value));
            var result  = await _httpExecuter.GetAsync(url, headers);

            return(JsonConvert.DeserializeObject <ApiResult>(result));
        }