SINVR BZV1 ".$sinvr_bzv1; ////////// echo "
".$invr_cont."
"; echo ""; echo ""; echo ""; echo "
"; exit; ///////////////////////////////////////// // echo "
Alle TALK Files"; $url='https://api.pandorabots.com/talk?botkey=9qPG2YT4KSC5zv3aee463ehkoIemxRssdjMG9ec6g_jvF4QpGCl88tQig-GWfTcX6UUTAMx4EZc~&input='.$sinvr_bzv1.' '; // $url="https://api.pandorabots.com/talk?botkey=9qPG2YT4KSCSumLi7_rfSS9UtHtEg1jzJmBQhQUkuw92Mwb15zqD-O8XhCkYKXzy1CKD4ZZ9NxfpRRMAzHgRlw~~&input=hoe%20gaat%20het -H "accept: application/json"; $ch = curl_init( $url ); # Setup request to send json via POST. $payload = json_encode( array( "customer"=> $data ) ); curl_setopt( $ch, CURLOPT_POSTFIELDS, $payload ); curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json')); # Return response instead of printing. curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); # Send request. $result = curl_exec($ch); curl_close($ch); # Print response. // echo "
$result
"; $json = json_decode($result); // echo "
JSON
".$json; // print_r($json); // echo "
RESPONSE".$json; echo ""; foreach($json as $json_key => $json_val) { // echo "
JSON EXPLOSIE "; if ($json_key == "responses") { echo ""; foreach($json_val as $files_key => $files_val) { // echo "
".urlencode(substr($files_val,0,26))."
"; if (substr($files_val,0,26) == "wat wilt u daarover zeggen") { $files_val="geen direct antwoord"; echo ""; } else { echo ""; } } } } echo "
".$json_key."".$json_val."
".$invr_bzv1."
".$files_val."
".$files_val."
"; /////////// echo "

"; echo "
GET AIML FOR ".$invr_cont."
"; $url="https://api.pandorabots.com/bot/un0f381ea3/remko/file/".$invr_cont.".aiml?user_key=5cc2ebdcf2fd3d86465f481105d3f482"; $json = file_get_contents($url); // $njson = json_decode($json); $json = preg_replace("#(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/)|([\s\t]//.*)|(^//.*)#", '', $json); $njson=str_replace("*","",$json); $njson=str_replace("$","",$njson); // print_r($njson); echo ""; $sgmt_rslt=bepl_sgmt($njson); foreach($sgmt_rslt as $sgmt_key => $sgmt_val) { // echo ""; } echo "
".urlencode($sgmt_key)."".$sgmt_val."
"; echo "
".$invr_cont."
"; $sgmt_rslt=bepl_sgmt($njson); foreach($sgmt_rslt as $sgmt_key => $sgmt_val) { $ssgmt_key=str_replace(" ","+",$sgmt_key); $usgmt_key=urlencode($sgmt_key); $usgmt_dtls=explode("%3c",$usgmt_key); print_r($usgmt_dtls); $lsgmt_key="".urlencode($sgmt_key).""; echo "
".$lsgmt_key."
"; } echo ""; echo "

"; echo "
TALK ABOUT CONT ".$invr_cont."
"; $url="https://api.pandorabots.com/bot/un0f381ea3/receptioniste/file/voetbal.aiml?user_key=5cc2ebdcf2fd3d86465f481105d3f482"; $json = file_get_contents($url); $json = preg_replace("#(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/)|([\s\t]//.*)|(^//.*)#", '', $json); $json = json_decode($json); print_r($json); foreach($json as $json_key => $json_val) { echo "JSON EXPLOSIE ".$json_key."".$json_val.""; if ($json_val == "files") { foreach($json_val as $files_key => $files_val) echo "FILES EXPLOSIE ".$files_key."".$files_val.""; } } ////////// echo "
Alle AIML Files"; $url="https://api.pandorabots.com/bot/un0f381ea3/receptioniste?user_key=5cc2ebdcf2fd3d86465f481105d3f482"; $json = file_get_contents($url); // $json = preg_replace("#(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/)|([\s\t]//.*)|(^//.*)#", '', $json); $json = json_decode($json); // echo ""; foreach($json as $json_key => $json_val) { // echo "JSON EXPLOSIE "; if ($json_val == "files") { foreach($json_val as $files_key => $files_val) echo "FILES EXPLOSIE "; } } echo "
".$json_key."".$json_val."
".$files_key."".$files_val."
"; exit; ?>