Публикации на тази страница:
bgUrl API - example with RestClient
In this example I use RestClient by Adam Wiggins : http://github.com/adamwiggins/rest-client/tree
require 'rubygems' require 'rest_client' def shorten (url) response = RestClient.post 'http://bgurl.org/api/links', :website_url => url response[/permalink>(.*)<\/permalink>/,1] end


а>
а>