Exemplo n.º 1
0
<?php

header("Content-Type: application/json");
require_once 'autoload.php';
echo json_encode(FirebasePuller::pull_history(), JSON_PRETTY_PRINT);
Exemplo n.º 2
0
<?php

header("Content-Type: application/json");
require_once 'autoload.php';
$all_items = FirebasePuller::pull_all();
http_response_code(200);
echo json_encode($all_items, JSON_PRETTY_PRINT);