Skip to content
Advertisement

send POST ResetPassword API request using php to PlayFab

I am trying to implement PlayFab password recovery process following this tutorial: https://docs.microsoft.com/en-us/gaming/playfab/features/engagement/emails/using-email-templates-to-send-an-account-recovery-email

The actual request: https://docs.microsoft.com/en-us/rest/api/playfab/admin/account-management/reset-password?view=playfab-rest

The problem is that I have no experience with php so I have been struggling for days to get this to work and not succeeded. The last activity I record from PlayFab Data Explorer is auth_token_validated meaning I click on the link and open the callback URL.

I do believe, after some help, that part of the php script works but not the key function, the API POST. I have tried to leverage tutorials, documentations etc. but can still not get the callback to work. I am sure I have not figured out php and would really appreciate if someone could give me a few hints and/or help.

Below is the full php script (my first)! …I know it probably looks terrible etc. as I just trying to get it to work. Again, I am not able to post back to PlayFab. The problem I believe is below @ “Perform the POST request to PlayFab”

JavaScript

Advertisement

Answer

So here is a working example of the actual code snippet to PlayFab:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement