Echo example in PHP

History Key

  • New content
  • Removed content

Recent Versions

Choose two versions to compare, or click the link to view it.

  1. 7. almost 2 years by d6y
  2. 6. almost 2 years by d6y
  3. 5. almost 2 years by d6y
  4. 4. almost 2 years by d6y
  5. 3. almost 2 years by d6y
  6. 2. almost 2 years by d6y
  7. 1. almost 2 years by d6y
 

You know PHP? You could help us out with this page by improving it.

The echo web hook simply texts back whatever was texted in.

Create a word in Taykt and set up the webhook to call a PHP page that contains the following:

<?php echo $_POST['pid']; ?> sent <?php echo $_POST['text']; ?>

If you called your page echo.php then in Taykt you'd set up the web hook to call: http://your-site.com/echo.php

You can simulate a text being sent in using a tool such as cURL:

curl http://exmaple.com/echo.php -X POST -d 'pid=7c48160a-3989-4ffe-9dc3-da2642d6500a' -d 'text=Hello world'

In this case, the simulated text back would contain:

7c48160a-3989-4ffe-9dc3-da2642d6500a sent Hello world 

Here's what a configured web hooks looks like in Taykt: