Example #1
0
        public void HttpPostOptimized(ApiObject command)
        {
            var json = command.GetOptimizedJson();

            if (json.IsNullOrWhiteSpace())
            {
                if (HttpClient.Debug == 1)
                {
                    CrestronConsole.PrintLine("Unity.RestClient.HttpPostOptimized({0}) OptimizedJson == null.", command.GetUrl);
                }
                return;
            }
            HttpClient.Post(BuildFullUrl(command.SetUrl), json);
        }
Example #2
0
 public string HttpPost(ApiObject command)
 {
     return(HttpClient.Post(BuildFullUrl(command.SetUrl), command.GetJson()));
 }