Skip to content

Instantly share code, notes, and snippets.

@pranid
Last active August 25, 2016 09:52
Show Gist options
  • Save pranid/14f2dfed5e4c611d39dc47fb4b706579 to your computer and use it in GitHub Desktop.
Save pranid/14f2dfed5e4c611d39dc47fb4b706579 to your computer and use it in GitHub Desktop.
Get API related form data JSON
<?php
// use this to capture data that not from GET OR POST
// refer http://stackoverflow.com/questions/19004783/reading-json-post-using-php
$json = file_get_contents('php://input');
$obj = json_decode($json);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment