Return to Snippet

Revision: 5211
at October 11, 2008 08:12 by pmd


Updated Code
# 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

Revision: 5210
at February 19, 2008 14:11 by pmd


Initial Code
# 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

Initial URL
http://ruby.about.com/od/tutorials/ss/delicious_tags.htm

Initial Description
Creates a SSL connection with delicious API using the HTTP basic authentication.

Initial Title
delicious API HTTP Basic Authentication

Initial Tags
http

Initial Language
Ruby