Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
api
/
dpd
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php header('Content-type:application/json'); header('charset=UTF-8'); require_once 'dbx_dpd.php'; if ($_SERVER["REQUEST_METHOD"] == "POST" && $_SERVER["CONTENT_TYPE"] == "application/json") { $data = trim(file_get_contents("php://input")); $json = json_decode($data, true); if (is_array($json)) { $_REQUEST = $json + $_REQUEST; } $awb = (new DPD_API())->get_services(); $raspuns = json_encode($awb, true); echo $awb; } else { http_response_code(405); }