예제 #1
0
<?php

header("Content-Type: application/json");
require_once 'autoload.php';
echo json_encode(FirebasePuller::pull_history(), JSON_PRETTY_PRINT);
예제 #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);