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/addgooglemail.sh
Simon Stürz 2a372dd240 added google mail notification plugin
changed licence formating
2014-04-20 18:49:39 +02:00

8 lines
304 B
Bash
Executable File

#!/bin/bash
if [ -z $1 ]; then
echo "usage: $0 host user password sendTo"
else
(echo '{"id":1, "method":"Devices.AddConfiguredDevice", "params":{"deviceClassId": "{38ed6ffc-f43b-48f8-aea2-8d63cdcad87e}","deviceParams":{"user":"'$2'", "password":"'$3'", "sendTo":"'$4'"}}}'; sleep 1) | nc $1 1234
fi