Hi Chris
Many thanks for this update. I'm using the examples you pointed us to at
http://developer.yahoo.com/social/sdk/ . I'm using the example in C:\yahoo-yos-social-python-6cdea09\yahoo-yos-social-python-6cdea09\examples\oauth_tokens.py .
It breaks up at :
/*
print '\n* Authorize the request token ...'
print '\nAuthorization URL:\n%s' % oauthapp.get_authorization_url(request_token)
verifier = raw_input('Please authorize the url above ^^^')
*/
What should one pass into the verifier? When I passed in my username or password, it bombed giving me:
======
Please authorize the url above ^^^ (
my username and/or password)
* Obtain an access token ...
Traceback (most recent call last):
File "oauth_tokens.py", line 136, in <module>
main()
File "oauth_tokens.py", line 119, in main
access_token = oauthapp.get_access_token(request_token, verifier.strip())
File "../src/yahoo/application.py", line 81, in get_access_token
self.token = self.client.fetch_access_token(request)
File "../src/yahoo/oauth.py", line 164, in fetch_access_token
return AccessToken.from_string(self.connection.getresponse().read().strip())
File "../src/yahoo/oauth.py", line 129, in from_string
key = params['oauth_token'][0]
KeyError: 'oauth_token'
=====
Looking forward to hearing from you.
Sorry for the replies to multiple questions in one post:
The user should be able to provide you with the type of account they have at whatever point they access your app, allowing you to choose which API method to use.
I agree, OAuth is more complicated than just using a username/password, but it's much more secure. Previously, giving out your Delicious username and password to someone only gave them access to your Delicious content. Now, with Yahoo! ID integration, they would have access to your email, IM, stock portfolios and much more which is clearly not acceptable to the vast majority of users.
Apologies to all for the lack of documentation on this process. We dropped the ball here, and that's something we plan to resolve soon with some step-by-step examples of the OAuth flow. In the meantime, YDN provides code to work with OAuth at http://developer.yahoo.com/social/sdk/, which should hopefully make accessing Delicious easier.