Skip to content

Instantly share code, notes, and snippets.

@mbeale
Last active March 27, 2017 08:36
Show Gist options
  • Save mbeale/6981298 to your computer and use it in GitHub Desktop.
Save mbeale/6981298 to your computer and use it in GitHub Desktop.
EasyPost Handle Webhook PHP
$inputJSON = file_get_contents('php://input');
$event = \EasyPost\Event::receive($inputJSON);
if($event.description == 'tracker.updated'){
//process event here
}
@jrenouard
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment