From 464e00a25155aab7e3f853f69cd05ccf5291dd50 Mon Sep 17 00:00:00 2001 From: Derick Naef Date: Tue, 24 Jul 2018 15:18:59 -0400 Subject: [PATCH] DeviceInformation command API example support query strings (#469) --- tools/api/commands/device_information | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/api/commands/device_information b/tools/api/commands/device_information index 5b3131ff..d9587df9 100755 --- a/tools/api/commands/device_information +++ b/tools/api/commands/device_information @@ -4,7 +4,9 @@ endpoint="v1/commands" jq -n \ --arg request_type "DeviceInformation" \ --arg udid "$1" \ - '.udid = $udid + --arg query_strings "$2" \ + '.udid = $udid |.request_type = $request_type + |.queries = ($query_strings | split(",")) '|\ curl $CURL_OPTS -u "micromdm:$API_TOKEN" "$SERVER_URL/$endpoint" -d@-