Created
August 23, 2016 02:24
-
-
Save motyar/695b6960e32b799eb64fc29c23c7b332 to your computer and use it in GitHub Desktop.
Slack API event handler in PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Content-Type: application/x-www-form-urlencoded'); | |
$entityBody = file_get_contents('php://input'); | |
echo $entityBody; | |
// DO things with Slack API + $entityBody HERE! | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment