���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/alphpwcp/public_html/us/alphachat/modules/lhrestapi/editwebhook.php
���ѧ٧ѧ�
GNU nano 7.2 editwebhook.php <?php try { erLhcoreClassRestAPIHandler::validateRequest(); $requestBody = json_decode(file_get_contents('php://input'), true); if (!isset($requestBody['id'])) { throw new Exception("Invalid parameters. ID s are required."); } $webhook = erLhcoreClassModelChatWebhook::fetch((int)$requestBody['id']); if (!$webhook) { throw new Exception("Webhook not found."); } if (isset($requestBody['configuration'])) { $webhook->configuration = $requestBody['configuration']; } $webhook->disabled = $requestBody['disabled']; $webhook->updateThis(); erLhcoreClassRestAPIHandler::outputResponse([ 'success' => true, 'message' => 'Webhook updated successfully', 'webhook_id' => $webhook->id ]); } catch (Exception $e) { http_response_code(400); erLhcoreClassRestAPIHandler::outputResponse([ 'error' => true, 'message' => $e->getMessage() ]); } exit(); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�