Feat(api): Connect to API
Set up and connect to both potential API sources. Issue/Task ID: 1
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?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>';
|
||||
?>
|
||||
Reference in New Issue
Block a user