Merge pull request #2 from ksolomon/API-Connection

API connection
This commit is contained in:
Keith Solomon
2022-09-27 09:53:05 -05:00
committed by GitHub
+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=log&key=LDtibInYMdgVnM9n');
$objLog = json_decode($jsonLog);
echo '<h1>User API - Log</h1>';
echo '<pre>';