I have no experience with php and related programming and have spent the last couple of days to try to figure out how to create php code to post ResetPassword.
I have succeeded to create a php script (my first) that reads the callback URL and parse the Token but I really need help to post back to PlayFab. In the Data Explorer I see the auth_token_validated which means that it register click on the link.
I know that this is not a php forum but I take a chance to post this request here as it is the PlayFab forum and this is related. I have been searching for examples and that is what this code is based on. The following is an extract of the full script:
// Perform the POST request to PlayFab $url = "https://titleId.playfabapi.com/Admin/ResetPassword"; $data = array('Password' => $pw1, 'Token' => $link); $options = array( 'http' => array( 'header' => "X-SecretKey: xxxxxxxxxxxxxx", 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $resp = file_get_contents($url, false, $context); var_dump($resp);