title: Using Twython to send a tweet, twitter api error
body: <p>I'm trying to make python send a tweet for me using <a href="https://github.com/ryanmcgrath/twython/">Twython</a> but for some reason everything I'm trying isn't working.</p>
  
  <p>I've followed the <a href="https://github.com/ryanmcgrath/twython/blob/master/README.rst">Twython README</a> but still unable to acheive what I want.</p>
  
  <p>Below is my latest attempted code:</p>
  
  <pre><code>from twython import Twython, TwythonError
  
  APP_KEY = "KEYHERE"
  APP_SECRET = "SECRETHERE"
  
  twitter = Twython(APP_KEY, APP_SECRET)
  auth = twitter.get_authentication_tokens()
  
  OAUTH_TOKEN = auth['oauth_token']
  OAUTH_TOKEN_SECRET = auth['oauth_token_secret']
  
  twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET)
  
  try:
      twitter.update_status(status='See how easy this was?')
  except TwythonError as e:
      print e
  </code></pre>
  
  <p>On running the above code I get the following traceback error:</p>
  
  <pre><code>Twitter API returned a 401 (Unauthorized), Invalid or expired token
  </code></pre>
  
  <p>Does anyone know what I'm doing wrong and more importantly how do I fix this?</p>
  
  <p>I dont have enough points for a bounty, but I would really appreciate the help!</p>
  
  <p>Thanks in advance</p>
  
  <p><strong>edit</strong></p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\testtweet.py", line 20, in &lt;module&gt;
      final_step = twitter.get_authorized_tokens(oauth_verifier)
    File "C:\Python27\lib\site-packages\twython\api.py", line 313, in get_authorized_tokens
      raise TwythonError('Unable to decode authorized tokens.')
  TwythonError: Unable to decode authorized tokens.
  </code></pre>
  
  <p>The above is the traceback recieved from the code supplied by @justhalf</p>
  
  <p>Thanks SMNALLY</p>