PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/live2news.com/wp-content/plugins/wpbot-pro/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/live2news.com/wp-content/plugins/wpbot-pro/qcld-df-webhook.php |
<?php /* * @package Dialogflow Webhook by QuantumCloud * @Since 9.3.8 */ if ( ! defined( 'ABSPATH' ) ) { exit; } /* * Callback function for Webhook * @Since 9.3.8 * You can write your script inside this callback function. */ function qcld_wpbot_dfwebhookcallback($request){ // Authentication check if(qcld_validate_authorization_header()){ //get all incoming requests $req = $request->get_params(); //Intent name $intent = $req['queryResult']['intent']['displayName']; //parameters $parameters = $req['queryResult']['parameters']; //Start custom code section. // Write your fulfillment response in this block //========================== $json_reponse = ' { "fulfillmentText": "This is from webhook_test response from webhook", "fulfillmentMessages": [ { "text": { "text": [ "This is from webhook_test response from webhook" ] } } ] }'; echo $json_reponse; //End custom code section //================ // Please do not edit the below code. }else { wp_send_json(array('success' => false, 'message' => 'Authorization failed.')); } }