Files
sysadmin/pandoc/joplin2pdc.sh

19 lines
360 B
Bash
Executable File

#!/bin/sh
type=$1
id=$2
to=$3
token="07303f7bded4663f8151f4760d1316792196a9c2acd151d6634591b1ebe8846a7b31da3fea9a5de6ff03aa950219382f41d0510b43e6742c4bff692e8d898baa"
function usage {
printf "$0 [notes | folders | resources | tags ] [ID] [toFormat]"
}
if [ -z $1 ]
then
usage
exit
fi
curl -s http://localhost:41184/${type}/${id}?token=${token}