From 38973bbfc56cf10ff261eb82422039a721b55415 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Tue, 27 Sep 2022 08:03:34 -0500 Subject: [PATCH 1/7] Initial commit --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..d8ed9bd --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Torn-Vault-Tracker \ No newline at end of file From c5876d60807c8e714e4ffe49450ebe68a6307024 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Tue, 27 Sep 2022 08:06:45 -0500 Subject: [PATCH 2/7] Chore(*): Initial commit --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d8ed9bd..c3d426c 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# Torn-Vault-Tracker \ No newline at end of file +# Torn-Vault-Tracker + +Web app to track transactions for shared private island vaults \ No newline at end of file From 2a3edacc6375563fa5d58707c7fae44df60ed2f5 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Tue, 27 Sep 2022 08:39:54 -0500 Subject: [PATCH 3/7] Chore(*): Site notes --- Torn Vault Tacker App Notes.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Torn Vault Tacker App Notes.md diff --git a/Torn Vault Tacker App Notes.md b/Torn Vault Tacker App Notes.md new file mode 100644 index 0000000..220202d --- /dev/null +++ b/Torn Vault Tacker App Notes.md @@ -0,0 +1,8 @@ +# Torn Vault Tacker App Notes + +### API calls +* https://api.torn.com/user/?selections=money&key=\ + * Vault total: vault_amount +* https://api.torn.com/user/?selections=log&key=\ + * "title": "Vault withdraw" + From 6b6ca19b1c77848a25e1c4f22633bf0a278aaa53 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Tue, 27 Sep 2022 09:00:25 -0500 Subject: [PATCH 4/7] Docs(notes): Switch to plain text --- Torn Vault Tacker App Notes.md | 8 -------- Torn Vault Tacker App Notes.txt | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 Torn Vault Tacker App Notes.md create mode 100644 Torn Vault Tacker App Notes.txt diff --git a/Torn Vault Tacker App Notes.md b/Torn Vault Tacker App Notes.md deleted file mode 100644 index 220202d..0000000 --- a/Torn Vault Tacker App Notes.md +++ /dev/null @@ -1,8 +0,0 @@ -# Torn Vault Tacker App Notes - -### API calls -* https://api.torn.com/user/?selections=money&key=\ - * Vault total: vault_amount -* https://api.torn.com/user/?selections=log&key=\ - * "title": "Vault withdraw" - diff --git a/Torn Vault Tacker App Notes.txt b/Torn Vault Tacker App Notes.txt new file mode 100644 index 0000000..80f4048 --- /dev/null +++ b/Torn Vault Tacker App Notes.txt @@ -0,0 +1,8 @@ +Torn Vault Tacker App Notes + +API calls + https://api.torn.com/user/?selections=money&key=\ + Vault total: vault_amount + https://api.torn.com/user/?selections=log&key=\ + "title": "Vault withdraw" + From 3e8b91947114c201834ef88ae99601f4c5738f82 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Tue, 27 Sep 2022 09:07:59 -0500 Subject: [PATCH 5/7] Feat(api): Connect to API Set up and connect to both potential API sources. Issue/Task ID: 1 --- vault.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 vault.php diff --git a/vault.php b/vault.php new file mode 100644 index 0000000..6f6a3c9 --- /dev/null +++ b/vault.php @@ -0,0 +1,17 @@ +User API - Money'; +echo '
';
+print_r($objMoney);
+echo '
'; + +$json = file_get_contents('https://api.torn.com/user/?selections=money&key=LDtibInYMdgVnM9n'); +$objLog = json_decode($json); + +echo '

User API - Log

'; +echo '
';
+print_r($objLog);
+echo '
'; +?> \ No newline at end of file From 6e63f963b11d518533bf0a4ab551bb08613b444c Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Tue, 27 Sep 2022 09:16:52 -0500 Subject: [PATCH 6/7] Feat(api): Change variable names Changed $json in each API call to $jsonMoney and $jsonLog Issue/Task ID: 1 --- vault.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vault.php b/vault.php index 6f6a3c9..99d2860 100644 --- a/vault.php +++ b/vault.php @@ -1,14 +1,14 @@ User API - Money'; echo '
';
 print_r($objMoney);
 echo '
'; -$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 '

User API - Log

'; echo '
';

From 9864688aae38a13b970dde48ed8fc13758112e3e Mon Sep 17 00:00:00 2001
From: Keith Solomon 
Date: Tue, 27 Sep 2022 09:50:21 -0500
Subject: [PATCH 7/7] Feat(api): Correct Log URL

Switch to correct API URL for the Log call

Issue/Task ID: 1
---
 vault.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vault.php b/vault.php
index 99d2860..d318cd1 100644
--- a/vault.php
+++ b/vault.php
@@ -7,7 +7,7 @@ echo '
';
 print_r($objMoney);
 echo '
'; -$jsonLog = file_get_contents('https://api.torn.com/user/?selections=money&key=LDtibInYMdgVnM9n'); +$jsonLog = file_get_contents('https://api.torn.com/user/?selections=log&key=LDtibInYMdgVnM9n'); $objLog = json_decode($jsonLog); echo '

User API - Log

';