about summary refs log tree commit diff
path: root/monzo_ynab
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-02-07T21·35+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-02-07T21·35+0000
commit1b743422192a66c4a179de9b46c6ab88a1758912 (patch)
treea021b30dd2a155ddc5e9e4c40e4ded2b721dfd5e /monzo_ynab
parent74211a3c029a157dbd9499b3fe1d29333a8a3a1d (diff)
Support a restclient.el scratch buffer
I've been using restclient.el and `restclient-mode` lately to test API calls,
and I'm enjoying. I think it might make sense to track these scratch files in
the repo. Who knows? They may serve as a form of documentation.
Diffstat (limited to 'monzo_ynab')
-rw-r--r--monzo_ynab/requests.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/monzo_ynab/requests.txt b/monzo_ynab/requests.txt
new file mode 100644
index 000000000000..9634c03ad1e0
--- /dev/null
+++ b/monzo_ynab/requests.txt
@@ -0,0 +1,10 @@
+:endpoint = https://api.youneedabudget.com/v1
+:access-token := (password-store-get "finance/youneedabudget.com/personal-access-token")
+:budget-id := (password-store-get "finance/youneedabudget.com/budget-id")
+
+# Test
+GET :endpoint/budgets
+Authorization: Bearer :access-token
+
+# List transactions
+GET :endpoint/budgets/:budget-id/transactions
\ No newline at end of file