func (a clientOAuthAuthentication) authenticate(req *http.Request, endpoint string, params []byte) error {
	// Ensure tokens havent expired
	if time.Now().UTC().Unix() > a.Tokens.ExpireTime {
		return errors.New("The OAuth tokens are expired. Use refreshTokens to refresh them")
	}
	req.Header.Set("Authorization", "Bearer "+a.Tokens.AccessToken)
	return nil
}
func (a clientOAuthAuthentication) authenticate(req *http.Request, endpoint string, params []byte) error {
	
	if time.Now().UTC().Unix() > a.Tokens.ExpireTime {
		return errors.New("The OAuth tokens are expired. Use refreshTokens to refresh them")
	}
	req.Header.Set("Authorization", "Bearer "+a.Tokens.AccessToken)
	return nil
}
func ( a clientOAuthAuthentication ) authenticate ( req * http . Request , endpoint string , params [ ] byte ) error { // Ensure tokens havent expired if time . Now ( ) . UTC ( ) . Unix ( ) > a . Tokens . ExpireTime { return errors . New ( " " ) } req . Header . Set ( " " , " " + a . Tokens . AccessToken ) return nil }
// Client OAuth authentication requires us to attach an unexpired OAuth token to
// the request header
Client OAuth authentication requires us to attach an unexpired OAuth token to the request header