ObrigadoVeja o código completo
<?php
$token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
$headers = array('Authorization: Token ' . $token);
$ch_subs = curl_init();
curl_setopt($ch_subs, CURLOPT_URL, 'https://site.com/api/listar');
curl_setopt($ch_subs, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch_subs, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch_subs, CURLOPT_HTTPHEADER, $headers);
$obj_json_trans = json_decode(curl_exec($ch_subs));
/* print_r($obj_json_trans); */
?>
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<?php
$eventos = $obj_json_trans->eventos;
foreach ( $eventos as $chave=>$e )
{
echo "id: $e->id - status: $e->status - título: $e->titulo <br> ";
}
curl_close($ch_subs);
?>
</body>
</html>