/ Published in: Ruby
                    
                                        
Creates a SSL connection with delicious API using the HTTP basic authentication.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
# Creates a SSL connection with delicious API using the HTTP basic authentication.
# From http://ruby.about.com/od/tutorials/ss/delicious_tags.htm
# CHANGE USERNAME & PASS !!!
require 'net/https'
http = Net::HTTP.new('api.del.icio.us', 443)
http.use_ssl = true
http.start do |http|
request = Net::HTTP::Get.new('/v1/tags/get')
request.basic_auth 'username', 'password'
response = http.request(request)
response.value
puts response.body
end
URL: http://ruby.about.com/od/tutorials/ss/delicious_tags.htm
Comments
 Subscribe to comments
                    Subscribe to comments
                
                