This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-core/tests/scripts/getvendors.sh
Simon Stürz f5c4bd16ac Add Qt6 support
Add Qt6 debian packaging
2025-09-11 10:09:24 +02:00

22 lines
338 B
Bash
Executable File

#!/bin/bash
if [ -z $1 ]; then
echo "usage: $0 host <token>"
exit 1
fi
if [ -z $2 ]; then
cat <<EOD | nc $1 2223
{"id":0, "method":"JSONRPC.Hello"}
{"id":1, "method":"Integrations.GetVendors"}
EOD
exit 0
fi
cat <<EOD | nc $1 2223
{"id":0, "method":"JSONRPC.Hello"}
{"id":1, "token": "$2", "method":"Integrations.GetVendors"}
EOD