SetAuthHeader sets the appropriate authentication header on req.
func (ep WriteEndpoint) SetAuthHeader(req *http.Request)| Name | Type | Description |
|---|---|---|
req* | *http.Request |
SetAuthHeader sets the appropriate authentication header on req. OAuth access token takes precedence over API key.