Advertisement
Gleydson

whatsapp

May 20th, 2020
2,549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.30 KB | None | 0 0
  1. <?php $app_name = $_POST[“app”]; $sender = $_POST[“sender”]; $message = $_POST[“message”]; if ($app_name == “WhatsApp”) { if ($sender == “Bob”) { if ($message == “order status”) { $reply = array(“reply” => “Hello bob, your order is confirmed.”); echo json_encode($reply); } } } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement