Version 7, last updated by Richard Dallaway at June 01, 2010 UTC
Echo example in PHP
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:
