oauth error

40 views
Skip to first unread message

Mustardonja

unread,
Nov 10, 2010, 2:52:15 PM11/10/10
to python-twitter
When running

>>> api = twitter.Api(consumer_key='consumer_key',
consumer_secret='consumer_secret', access_token_key='access_token',
access_token_secret='access_token_secret')

with all arguments replaced by my application keys I get an error that
looks like this.


Traceback (most recent call last):
File "<pyshell#2>", line 2, in <module>
consumer_secret='xxxx', access_token_key='xxxxxx',
access_token_secret='xxxxx')
TypeError: __init__() got an unexpected keyword argument
'access_token_key'

Can someone help.

I'm running 64-bit Ubuntu 10.10. Thanks.

aviv

unread,
Nov 11, 2010, 1:35:50 PM11/11/10
to python-twitter
I can't recreate that error ...

>>> import twitter
>>> api = twitter.Api(consumer_key='consumer_key',
... consumer_secret='consumer_secret',
access_token_key='access_token',
... access_token_secret='access_token_secret')
>>>

Are you running the latest version of python-twitter?

>>> import twitter
>>> print twitter.__version
0.9-devel
>>>

I haven't followed the development that closely, but I do know that
the oauth is rather recent addition. Twitter switched over to it this
summer. There were some issues relating to it on the google code
message board.

adam

Jonathan

unread,
Nov 12, 2010, 12:07:01 PM11/12/10
to python-twitter
How do you checkout .9-devel

I can only get .6 from the mercurial

Thanks,

Jon

Adam Aviv

unread,
Nov 12, 2010, 12:09:32 PM11/12/10
to python-...@googlegroups.com, Jonathan
Check out:

http://code.google.com/p/python-twitter/

Download the trunk using hg.

adam

Reply all
Reply to author
Forward
0 new messages