code: func (o *OAuthProvider) OAuth1Client(c *Context) *oauth.Consumer {
  
  	if o.ID == "" {
  		log.Error(errors.New("Can't get OAuth1Client – ID not set"))
  		return nil
  	}
  
  	service := c.Service()
  	config := service.DefaultOAuth1
  
  	if config.AccessTokenReceiver == nil {
  		log.Error(errors.New("Can't get OAuth1Client – AccessTokenReceiver not set"))
  
  		return nil
  	}
  
  	config.Key = o.ID
  	config.Secret = o.Secret
  	config.AccessTokenURL = replaceBaseURL(config.AccessTokenURL, o.BaseURL)
  	config.AuthorizeTokenURL = replaceBaseURL(config.AuthorizeTokenURL, o.BaseURL)
  	config.RequestTokenURL = replaceBaseURL(config.RequestTokenURL, o.BaseURL)
  
  	consumer := oauth.NewConsumer(
  		o.ID,
  		o.Secret,
  		oauth.ServiceProvider{
  			RequestTokenUrl:   config.RequestTokenURL,
  			AuthorizeTokenUrl: config.AuthorizeTokenURL,
  			AccessTokenUrl:    config.AccessTokenURL,
  		},
  	)
  	consumer.AdditionalAuthorizationUrlParams = service.DefaultOAuth1.AdditionalAuthorizationURLParams
  	return consumer
  }
docs: // OAuth1Client returns oauth.Consumer using OAuthProvider details