code: public static RestTemplate create(OAuth1Credentials credentials) {
  		RestTemplate client = new RestTemplate(ClientHttpRequestFactorySelector.getRequestFactory());
  		OAuth1RequestInterceptor interceptor = new OAuth1RequestInterceptor(credentials);
  		List<ClientHttpRequestInterceptor> interceptors = new LinkedList<ClientHttpRequestInterceptor>();
  		interceptors.add(interceptor);
  		client.setInterceptors(interceptors);
  		return client;
  	}
docs: Constructs a RestTemplate that adds the OAuth1 Authorization header to each request before it is executed.