hi,
I'm trying to get an app authorized to access my blog; I follow the
steps detailed at
http://sixapart.github.com/python-typepad-api/tut/auth.html,
but I get a python error.
Any help will be greatly appreciated:
Here's my python output:
$ python
Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import typepad
>>> from oauth import oauth
>>> app=typepad.Application.get_by_id(<my app_id>)
>>> consumer=oauth.OAuthConsumer(<my app consumer key>,<my app consumer secret>)
>>>
app.name
<output my app name correctly>
>>> token=typepad.client.interactive_authorize(consumer,app)
To join your application <my app name>, follow this link and click
"Allow":
<
https://www.typepad.com/secure/services/api/.....>
Enter the verifier code TypePad gave you: <here I enter the number on
the browser>
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "typepad/tpclient.py", line 214, in interactive_authorize
access_token = oauth_client.fetch_access_token(verifier=verifier)
File "typepad/tpclient.py", line 305, in fetch_access_token
self.token = oauth.OAuthToken.from_string(content)
File "/usr/lib/python2.6/dist-packages/oauth/oauth.py", line 142, in
from_string
key = params['oauth_token'][0]
KeyError: 'oauth_token'