added fake api script to test api response (test-json.php)

This commit is contained in:
user 2020-10-13 00:51:24 +02:00
parent a495ade686
commit f6d6d5273e

6
website/test-json.php Normal file → Executable file
View File

@ -1,7 +1,11 @@
<?php
// JSON tester to send out fake tier API responses to test our scripts and not abuse the Tier server
// Usage: http://localhost:8080/test-json.php?scooterID=1
// NOTE: DOES NOT WORK LOCALLY
// Usage: https://opencoil.show/test-json.php?scooterID=1
$scooterID = htmlspecialchars($_GET["scooterID"]);