Could someone help me with the understanding of webhooks from PhotonCloud.

AcidBear
✭
I am really stuck at this point cuz there is not enough info about it, and it would be really helpfull, if someone helped me with webhooks, i can call it from my unity project, and all works fine, but i cant get how the auto-webhooks are builded. And how to work with them... This is what i am using in my php file:
$json = file_get_contents('php://input'); $action = json_decode($json, true); $Username = $action->NickName; $RoomID = $action->GameId;
0
Comments
-
Problem solved. But the whole thing was in "NickName", its seems like i am receveing neither "NickName" in POST, but a "Nickname". Anyway there is a note in documentation that shows "NickName" sample.
Posting code here, in case it will be helpfull for someone.$json = file_get_contents('php://input'); $_POST = json_decode($json,true); $Username = (string)$_POST['Nickname']; $RoomID = (string)$_POST['GameId'];
0