Files
tilbudgivern/apitest/examples/curl_mobile_config.sh

15 lines
472 B
Bash
Executable File

#!/bin/bash
# Query: mobileConfig - Mobile app configuration
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${SCRIPT_DIR}/../apikey"
curl -s -X POST "https://graphql.ordrestyring.dk/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${API_KEY}" \
--data-binary @- <<'EOF' | jq '.'
{
"query": "query GetMobileConfig { mobileConfig { minimumAvailableVersion maxFileUploadSize { video image document default } } }"
}
EOF