equal
deleted
inserted
replaced
37 opts := make(map[string]string) |
37 opts := make(map[string]string) |
38 |
38 |
39 // Insert our sig |
39 // Insert our sig |
40 hdrs["User-Agent"] = fmt.Sprintf("Gondole/%s", GondoleVersion) |
40 hdrs["User-Agent"] = fmt.Sprintf("Gondole/%s", GondoleVersion) |
41 if g.userToken != nil { |
41 if g.userToken != nil { |
42 hdrs["Authorization"] = fmt.Sprintf("Bearer %s", g.userToken.Access_token) |
42 hdrs["Authorization"] = fmt.Sprintf("Bearer %s", g.userToken.AccessToken) |
43 } |
43 } |
44 |
44 |
45 req = rest.Request{ |
45 req = rest.Request{ |
46 BaseURL: endPoint, |
46 BaseURL: endPoint, |
47 Headers: hdrs, |
47 Headers: hdrs, |