Feat(api): Change variable names

Changed $json in each API call to $jsonMoney and $jsonLog

Issue/Task ID: 1
This commit is contained in:
Keith Solomon
2022-09-27 09:16:52 -05:00
parent 3e8b919471
commit 6e63f963b1
+4 -4
View File
@@ -1,14 +1,14 @@
<?php
$json = file_get_contents('https://api.torn.com/user/?selections=money&key=LDtibInYMdgVnM9n');
$objMoney = json_decode($json);
$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>';
$json = file_get_contents('https://api.torn.com/user/?selections=money&key=LDtibInYMdgVnM9n');
$objLog = json_decode($json);
$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>';