#!/bin/bash
UA="BSN-OpenClaw/1.0 (Brettspiel-News.de; kontakt@brettspiel-news.de)"
KEY="de3b01db-9be3-4c80-bd80-d47e071b320e"

# Try forum endpoint (lists threads)
curl -s --max-time 15 \
  -H "User-Agent: ${UA}" \
  -H "Authorization: Bearer ${KEY}" \
  "https://boardgamegeek.com/xmlapi2/forum?id=1&page=1" \
  > /home/hermes/workspace/bgg-scrape/forum1_data.xml 2>&1
echo "Exit: $?  Size: $(wc -c < /home/hermes/workspace/bgg-scrape/forum1_data.xml)"
head -30 /home/hermes/workspace/bgg-scrape/forum1_data.xml
