Good afternoon. I ask for help in adapting the script.
curl -X ‘POST’
‘https://wappi.pro/api/sync/message/send?profile_id=a53331f5-8845’
-H ‘accept: application/json’
-H ‘Authorization: 5232ab589f823063605b0274d3d3031d83ea841’
-H ‘Content-Type: text/plain’
-d ‘{
“recipient”: “79001112233”,
“body”: “your message”
}’
This should be close:
/tool/fetch url=“https://wappi.pro/api/sync/message/send?profile_id=a53331f5-8845” http-header-field=“Content-Type: application/json, Authorization: 5232ab589f823063605b0274d3d3031d83ea841” http-method=post http-data=[:serialize to=json {recipient=79001112233;body=“your message”}] output=user
You could break that up into variable so command was not so long. And if you need to save it a variable than an “as-value” is needed at end.
And /tool/fetch options are described here: https://help.mikrotik.com/docs/display/ROS/Fetch