Last active
March 27, 2017 08:36
-
-
Save mbeale/6981298 to your computer and use it in GitHub Desktop.
EasyPost Handle Webhook 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
$inputJSON = file_get_contents('php://input'); | |
$event = \EasyPost\Event::receive($inputJSON); | |
if($event.description == 'tracker.updated'){ | |
//process event here | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!