Files
Torn-Vault-Tracker/vault.php
T
Keith Solomon 6e63f963b1 Feat(api): Change variable names
Changed $json in each API call to $jsonMoney and $jsonLog

Issue/Task ID: 1
2022-09-27 09:16:52 -05:00

17 lines
457 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=money&key=LDtibInYMdgVnM9n');
$objLog = json_decode($jsonLog);
echo '<h1>User API - Log</h1>';
echo '<pre>';
print_r($objLog);
echo '</pre>';
?>