Files
Torn-Vault-Tracker/vault.php
T
Keith Solomon 9864688aae Feat(api): Correct Log URL
Switch to correct API URL for the Log call

Issue/Task ID: 1
2022-09-27 09:50:21 -05:00

17 lines
455 B
PHP

<?php
$jsonMoney = file_get_contents('https://api.torn.com/user/?selections=money&key=LDtibInYMdgVnM9n');
$objMoney = json_decode($jsonMoney);
echo '<h1>User API - Money</h1>';
echo '<pre>';
print_r($objMoney);
echo '</pre>';
$jsonLog = file_get_contents('https://api.torn.com/user/?selections=log&key=LDtibInYMdgVnM9n');
$objLog = json_decode($jsonLog);
echo '<h1>User API - Log</h1>';
echo '<pre>';
print_r($objLog);
echo '</pre>';
?>