<?php
include_once ('auth.php'); 
include_once ('functions.php');
if ($auth == 1) {
    
    $data = array();
    
    $data[mb_strtoupper('Prueba')] = array ( 
        "prueba" => "prueba"
    );
    mysqli_close($bd_conn);
    header("Content-type: application/json; charset=utf-8");
    //DEVUELVO EL JSON
    echo json_encode($data);
}elseif ($auth == 0) {
    $data = array();
    $data[] = array ( 
        "code" => "unauthorized_client",
        "message" => "Invalid authorization token"
    );
    header("Content-type: application/json; charset=utf-8");
    echo json_encode($data);
}
$bd->close();
$bd_conn->close();
//FUNCIONES=============================================
?>