Пример #1
0
        public static string Sql_get_value(string sql)
        {
            var url = ConfigurationManager.AppSettings["root"] + "/jsonApi/sql_get_value/";
            Dictionary <string, string> keyvalues = new Dictionary <string, string>();

            keyvalues.Add("sql", System.Web.HttpUtility.UrlEncode(sql));
            return(HttpRequestWapper.Post(url, keyvalues));
        }
Пример #2
0
 private JObject CreateOrGetMockUser(string ticket, string userId)
 {
     string url = ServerApiInvoker.Domain + "tasks/CreateOrGetMockUser";
     Dictionary<string, string> dict = new Dictionary<string, string>();
     dict.Add("userId", userId);
     string json = HttpRequestWapper.Post(url, dict, ticket);
     System.Diagnostics.Debug.WriteLine(json);
     return JsonConvert.DeserializeObject<JObject>(json);
 }