Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $j="ghghghg";
- function processMessage($update) {
- if($update["result"]["action"] == "sayHello"){
- sendMessage(array(
- "source" => $update["result"]["source"],
- "speech" => $j,
- "displayText" => $j,
- "contextOut" => array()
- ));
- }
- }
- function sendMessage($parameters) {
- echo json_encode($parameters);
- }
- $update_response = file_get_contents("php://input");
- $update = json_decode($update_response, true);
- if (isset($update["result"]["action"])) {
- processMessage($update);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement