all repos — honk @ c079585ea4e90870df5c981ef1b35a2aaab95631

my fork of honk

update example to user bearer token
Ted Unangst tedu@tedunangst.com
Fri, 13 Dec 2019 18:08:30 -0500
commit

c079585ea4e90870df5c981ef1b35a2aaab95631

parent

0dc85fc272cdb3bdbc83576be6316725789e5dfb

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M toys/youvegothonks.gotoys/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)