This commit is contained in:
Keith Solomon
2022-12-31 11:44:09 -06:00
2 changed files with 25 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
Torn Vault Tacker App Notes
API calls
https://api.torn.com/user/?selections=money&key=\<key>
Vault total: vault_amount
https://api.torn.com/user/?selections=log&key=\<key>
"title": "Vault withdraw"
+17
View File
@@ -0,0 +1,17 @@
<?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=log&key=LDtibInYMdgVnM9n');
$objLog = json_decode($jsonLog);
echo '<h1>User API - Log</h1>';
echo '<pre>';
print_r($objLog);
echo '</pre>';
?>