update example to user bearer token
Ted Unangst tedu@tedunangst.com
Fri, 13 Dec 2019 18:08:30 -0500
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
toys/youvegothonks.go
→
toys/youvegothonks.go
@@ -33,7 +33,7 @@ req, err := http.NewRequest("GET", apiurl, nil)
if err != nil { log.Fatal(err) } - req.Header.Add("Authorization", token) + req.Header.Add("Authorization", "Bearer " + token) resp, err := http.DefaultClient.Do(req) if err != nil { log.Fatal(err)