[QUOTE]Roman Ratkin wrote:
Hello everyone,
Tell me with a moment like this. Created a webhook that calls my php application. Curl from php command line application is available.
The webhook itself: Judging by the application logs, no one even tries to call it, ie hook doesn't fire. Tell me, is there some kind of logging in bitrix for hooks? What could be the problem?
[/QUOTE]
You should be adding quotes to the output to form valid json.
[CODE]{
"test": "$ input.path ('$')"
}[/CODE]
"test": "$ util.escapeJavaScript ($ input.path ('$')"
}[/CODE]
Hello everyone,
Tell me with a moment like this. Created a webhook that calls my php application. Curl from php command line application is available.
The webhook itself: Judging by the application logs, no one even tries to call it, ie hook doesn't fire. Tell me, is there some kind of logging in bitrix for hooks? What could be the problem?
[/QUOTE]
You should be adding quotes to the output to form valid json.
[CODE]{
"test": "$ input.path ('$')"
}[/CODE]
If you want to return a stringified json in "test", try [URL=https://www.mybalancenow.vip/][COLOR=#111111]MyBalanceNow[/COLOR][/URL]
[CODE]{"test": "$ util.escapeJavaScript ($ input.path ('$')"
}[/CODE]