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); }
public string HttpPost(ApiObject command) { return(HttpClient.Post(BuildFullUrl(command.SetUrl), command.GetJson())); }