Python
- 2 ответа
- 0 вопросов
2
Вклад в тег
$keyjson = json_encode($keyarr, JSON_UNESCAPED_UNICODE);
$confirmation_token = '58e46a05';
$data = json_decode(file_get_contents('php://input'));
switch ($data->type):
case 'confirmation': echo $confirmation_token; break;
case 'wall_post_new': реакция на событие; echo('ok'); break;
...
endswitch;