// new MediaTypeHeaderValue("application/x-www-form-urlencoded;utf-8");

        protected virtual HttpClient CreateHttpClient(YunpianConf conf)
        {
            var httpClient = new HttpClient();

            httpClient.DefaultRequestHeaders.Add("Api-Lang", "csharp");
            httpClient.Timeout = TimeSpan.FromSeconds(conf.GetInt(Const.HttpSoTimeout, "30"));

            return(httpClient);
        }
 public YunpianClient(string apikey, Dictionary <string, string> props = null)
 {
     _conf = new YunpianConf().With(apikey).With(props).Build();
 }