File "call_courier.php"

Full path: /home/kosmetik/public_html/api/dpd/call_courier.php
File size: 411 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?php

header('Content-type:application/json');
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;
    }
    echo (new DPD_API())->pickup_dpd();
} else {
    http_response_code(405);
}