Skip to content

Instantly share code, notes, and snippets.

@alpacas9
Created January 13, 2020 15:39
Show Gist options
  • Select an option

  • Save alpacas9/95bea51b43ed11404468e8840ce63f79 to your computer and use it in GitHub Desktop.

Select an option

Save alpacas9/95bea51b43ed11404468e8840ce63f79 to your computer and use it in GitHub Desktop.
deep_installreferrer
// Make sure that it's a POST request
if(strcasecmp($_SERVER['REQUEST_METHOD'], 'POST') != 0){
// Do something
}
// Get the RAW POST data
$content = trim(file_get_contents("php://input"));
// Decode the incoming RAW post data from JSON.
$decoded = json_decode($content, true);
// this is facebook deeplink
$deeplink = $decoded["deeplink"];
// this is google play install referrer
$install_referrer = $decoded["install_referrer"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment