about summary refs log tree commit diff
path: root/monzo_ynab
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-02-09T13·49+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-02-10T10·06+0000
commita5ef9b11a6f9d0214820009151751d183c6eb75a (patch)
tree1e921957cb0b2e2c7637180774f564a2739441a7 /monzo_ynab
parent64654d1d6d1f36a20e00ee6cdc3866ff009c3a0a (diff)
Remove dead code
Removing a half-baked Monzo HTTP client. A more fully supported and differently
designed one is forthcoming.
Diffstat (limited to 'monzo_ynab')
-rw-r--r--monzo_ynab/monzo.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/monzo_ynab/monzo.go b/monzo_ynab/monzo.go
deleted file mode 100644
index d27f65165620..000000000000
--- a/monzo_ynab/monzo.go
+++ /dev/null
@@ -1,18 +0,0 @@
-package main
-
-import (
-	"fmt"
-	"net/http"
-)
-
-// TODO: Support a version of this function that doesn't need the token
-// parameter.
-func monzoGet(token, string, endpoint string) {
-	client := &http.Client{}
-	req, err := http.NewRequest("GET", fmt.Sprintf("https://api.monzo.com/%s", endpoint), nil)
-	failOn(err)
-	req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", token))
-	res, err := client.Do(req)
-	failOn(err)
-	fmt.Println(res)
-}