Beispiel #1
0
        public static string Query(Dictionary <string, object> options)
        {
            string query        = (string)options["query"];
            var    queryOptions = new Dictionary <string, object>(options);

            queryOptions.Add("url", $"queryResults?query={query}");
            return(NormalizeResults.Normalize(OSvCCSharp.Connect.Get(queryOptions)));
        }
Beispiel #2
0
        public static string Run(Dictionary <string, object> options)
        {
            Dictionary <string, object> arrOptions = new Dictionary <string, object>(options);

            arrOptions.Add("url", "analyticsReportResults");

            var reportRequest = Item.FromJson(OSvCCSharp.Connect.Post(arrOptions));

            return(JsonConvert.SerializeObject(NormalizeResults.IterateThroughRows(reportRequest), Formatting.Indented, new JsonConverter[] { new StringEnumConverter() }));
        }