Remove dead code
Removing a half-baked Monzo HTTP client. A more fully supported and differently designed one is forthcoming.
This commit is contained in:
parent
64654d1d6d
commit
a5ef9b11a6
1 changed files with 0 additions and 18 deletions
|
@ -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)
|
||||
}
|
Loading…
Reference in a new issue