Files
tilbudgivern/apitest/examples/curl_finance_posts.sh

15 lines
468 B
Bash
Executable File

#!/bin/bash
# Query: financePosts - List finance posts
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 GetFinancePosts { financePosts(pagination: { limit: 10 }) { items { id name type budget { amount currency } } } }"
}
EOF