changeset 87 | 1b4653f07bfc |
parent 83 | adc39ae774c0 |
child 89 | 8a7a33bec6e1 |
--- a/gondole.go Wed Apr 12 18:27:34 2017 +0200 +++ b/gondole.go Wed Apr 12 18:28:24 2017 +0200 @@ -34,7 +34,9 @@ // Insert our sig hdrs["User-Agent"] = fmt.Sprintf("Gondole/%s", GondoleVersion) - hdrs["Authorization"] = fmt.Sprintf("Bearer %s", g.Secret) + if g.userToken != nil { + hdrs["Authorization"] = fmt.Sprintf("Bearer %s", g.userToken.Access_token) + } req = rest.Request{ BaseURL: endPoint,