Created
January 13, 2020 15:39
-
-
Save alpacas9/95bea51b43ed11404468e8840ce63f79 to your computer and use it in GitHub Desktop.
deep_installreferrer
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
| // 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