Del.icio.us importing with HTTP-Auth

I’m trying to put together some functionality in my rails app to import
a users bookmarks from del.icio.us

from the del.icio.us API documentation site they state:

“All del.icio.us APIs are done over https and require HTTP-Auth.”

how are people handling the processing of HTTP authentication in
situations like this when you are just making calls to a third-party
API. obviously I have the user input their del.icio.us username/password
but what is the process/request to del.icio.us to setup the
authentication for the subsequent call to retrieve all their bookmarks?

Craig J. wrote:

API. obviously I have the user input their del.icio.us username/password
but what is the process/request to del.icio.us to setup the
authentication for the subsequent call to retrieve all their bookmarks?

Hi

If it is similar to FeedBurner’s protocol, this might get you on the
right track:
#########
require ‘net/https’
require ‘rexml/document’

username, password = #initialize_details

f = Net::HTTP.new(‘api.feedburner.com’, 443’)
f.use_ssl = true

status, response = f.post(“management/1.0/AddFeed”, ‘authorization’ =>
{“#{username}:#{password}”})

xml_reponse = REXML::Document.new(response)
#########
This is in essence what I did in a feedburner plugin I wrote a while
back.
I don’t know how much alike the two are, but if it helps, here are the
links…

docs: http://combustible.rubyforge.org/docs/
the actual code file:
svn://rubyforge.org/var/svn/combustible/trunk/lib/combustible.rb

Regards,
Gustav P.