views:

308

answers:

2

To be more specific:

  1. My delicious account is a Yahoo ID so access via OAuth is required.

  2. It's for my use only to add/remove bookmarks. I have the password.

  3. It's a command line python program, not web-based.

My question is:

Is it possible to access my delicious account without being redirected to a Yahoo OAuth authorization page? Any examples are appreciated.

A: 

Yes, but only if you go through the authorisation process once, to link your account to your application.

After that, you can re-authorise your existing information by using the session ID supplied from the original request.

I think http://developer.yahoo.com/oauth/guide/oauth-refreshaccesstoken.html has the detail.

Diem
A: 

What you probably actually want to do is set oauth_callback=oob (out of bounds). Instead of redirecting you, it will give you a verification code for you to paste into your command line. This feature is meant for non-web based situations like yours.

Also, since you're in Python you can use this trick to launch the a browser to the authorization url:

import webbrowser
webbrowser.open(url)
Chad