19 lines
469 B
PHP
19 lines
469 B
PHP
<?php
|
|
class Test_rpt extends MY_Controller {
|
|
function __construct() {
|
|
parent::__construct();
|
|
}
|
|
function index() {
|
|
$headers = getallheaders();
|
|
$token = "";
|
|
if (in_array('Authorization', array_keys($headers))) {
|
|
$token = $headers['Authorization'];
|
|
}
|
|
$data = file_get_contents("php://input");
|
|
$resp = json_decode($data,true);
|
|
$v_data = print_r($resp,true);
|
|
echo "Helo $token \n $v_data";
|
|
}
|
|
|
|
}
|