I use the app BetterTouchTool and this works:
- Code: Select all
do shell script "curl --digest -u 'USER:PASSWORD' http://192.168.1.14:8176/actions/Remote_Buddy_Menu?_method=execute"
The app is preventing the use of double quotes inside the do shell script.
Trying:
- Code: Select all
do shell script "curl -X POST -H 'Authorization: Bearer API-KEY' -d '{'message': 'indigo.actionGroup.execute','objectId':1573095203}' 192.168.1.14:8176/v2/api/command"
It gives me the Web Server Error and Web Server Warning HTTP 400 error for request /v2/api/command from 192.168.1.14
The App returns with {"request_body":"{message: indigo.actionGroup.execute,objectId:1573095203}","error":"invalid JSON"}
I tried all kinds of variations with the use of quotes but nothing works.
Who can help.
Greetings, Adrian