Files
Torn-Vault-Tracker/vault.php
T
Keith Solomon 3e8b919471 Feat(api): Connect to API
Set up and connect to both potential API sources.

Issue/Task ID: 1
2022-09-27 09:07:59 -05:00

17 lines
441 B
PHP

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