title: Python twitter "errors":[{"message":"Could not authenticate you","code":32
body: <p>I'm trying to execute the examples from <a href="https://github.com/sixohsix/twitter" rel="nofollow">https://github.com/sixohsix/twitter</a> with the current library version installed by pip install (1.14.3).</p>
  
  <pre><code>#!/usr/bin/env python
  # -- coding: utf-8 --
  from twitter import *
  con_secret='DACs' # "Consumer Secret"
  con_secret_key='jold' # "Consumer Key"
  token='2554' # "Access token"
  token_key='HHSD' # "Access Token Secret"
  t = Twitter(
      auth=OAuth(token, token_key, con_secret, con_secret_key))
  t.statuses.user_timeline(screen_name="RenateBergmann")
  </code></pre>
  
  <p>The reply is:
  twitter.api.TwitterHTTPError: Twitter sent status 401 for URL: 1.1/statuses/user_timeline.json using parameters: (oauth_consumer_key=DA...&amp;oauth_nonce=...&amp;oauth_signature_method=HMAC-SHA1&amp;oauth_timestamp=....&amp;oauth_token=....&amp;oauth_version=1.0&amp;screen_name=RenateBergmann&amp;oauth_signature=......)
  details: {"errors":[{"message":"Could not authenticate you","code":32}]}</p>
  
  <p>What's the issue? Have I used the right tokens and keys? The labeling in the script is a bit different from the Twitter api page.
  Is Python 2.7 the proper version? The documentation said 2.6, but someone told me I had to use 2.7.
  Is the authentication method correct? It should be, because this is an example from the Github readme.</p>
  
  <p>I'm a beginner, so maybe it's only a slight mistake?</p>