Im trying to make a search workflow for the Bear notes app, the success url is called but no JSON data seems to be included. Does anyone know why this wouldn't work?
I have a bash script that is called when the keyword is typed, hardcoded to search for "test":
open -g "bear://x-callback-url/search?term=test&show_window=no&token=MY_TOKEN&x-success=alfred://runtrigger/com.myapp.bear/displayresults/"
Then an external trigger that executes this bash script:
query=$1
# Check if query is empty
if [ -z "$query" ]; then
echo "No query was provided" >&2
else
echo "The query is: $query" >&2
fi