New issue 176 by ocelma: PostUpdate (still) returns IncorrectSignature
(continuation of issue #157)
http://code.google.com/p/python-twitter/issues/detail?id=176
- What steps will reproduce the problem?
1. api = twitter.Api(...)
2. message ='Just testing OAuth...please work! ;-('
3. status = api.PostUpdate(message)
- What is the expected output?
The user message has been correctly posted
- What do you see instead?
Error: twitter.TwitterError: Incorrect signature
- What version of the product are you using?
0.9-devel
(I just did an hg clone https://python-twitter.googlecode.com/hg/
python-twitter)
- On what operating system?
Ubuntu 10.04
- Please provide any additional information below.
Please find attached file with a python script that reproduces this problem
Attachments:
test_post_update.py 428 bytes
Have you tied regenerating your access tokens? Also, check that your
application is still listed.
I've also found that if your clock skew is too far off, this will mess up
the nonce, and thus the signature.
The values for the parameters of consumer_key and consumer_secret are
not your web-based twitter userid and password, but rather the values
you are assigned by twitter when you created the Application (and also
what you had to give inside of get_access_token.py.)
I would change your code to read:
import twitter
CONSUMER_KEY = 'value_of_your_apps_consumer_key'
CONSUMER_SECRET = 'value_of_your_apps_consumer_secret'
ACCESS_KEY = '****' # generated via get_access_token.py
ACCESS_SECRET = '****' # generated via get_access_token.py
api = twitter.Api(consumer_key=CONSUMER_KEY, consumer_secret=CONSUMER_SECRET,
access_token_key=ACCESS_KEY, access_token_secret=ACCESS_SECRET,
debugHTTP=True)
> --
> You received this message because you are subscribed to the Google Groups "python-twitter" group.
> To post to this group, send email to python-...@googlegroups.com.
> To unsubscribe from this group, send email to python-twitte...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/python-twitter?hl=en.
>
>
--
Bear
be...@xmpp.org (email)
bea...@gmail.com (xmpp, email)
be...@code-bear.com (xmpp, email)
http://code-bear.com/bearlog (weblog)
PGP Fingerprint = 9996 719F 973D B11B E111 D770 9331 E822 40B3 CD29
Comment #2 on issue 176 by bear42: PostUpdate (still) returns
IncorrectSignature (continuation of issue #157)
http://code.google.com/p/python-twitter/issues/detail?id=176
marking as closed as it was solved in the discussion group