Ruby Code:
require'cgi'
require'open-uri'
def get_tiny_url(url)
url=CGI::escape(url)
open("http://tinyurl.com/api-create.php?url="+url).read
end
订阅:
博文评论 (Atom)
It's my google blog ...
Ruby Code:
require'cgi'
require'open-uri'
def get_tiny_url(url)
url=CGI::escape(url)
open("http://tinyurl.com/api-create.php?url="+url).read
end
没有评论:
发表评论