From 1b743422192a66c4a179de9b46c6ab88a1758912 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 7 Feb 2020 21:35:18 +0000 Subject: [PATCH] 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. --- monzo_ynab/requests.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 monzo_ynab/requests.txt diff --git a/monzo_ynab/requests.txt b/monzo_ynab/requests.txt new file mode 100644 index 000000000..9634c03ad --- /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