Created
September 3, 2008 01:56
-
-
Save robbyrussell/8518 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST -H 'Content-Type: application/json' -H "Accept: application/json" -d '{ "link": { "website_url": "http://github.com/robbyrussell/rubyurl" } }' http://rubyurl.com/api/links | ruby -rubygems -e 'require "json"; require "yaml"; puts JSON.parse($stdin.gets).to_yaml' | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 107 100 107 0 0 527 0 --:--:-- --:--:-- --:--:-- 0 | |
--- | |
link: | |
permalink: http://rubyurl.com/G2mM | |
website_url: http://github.com/robbyrussell/rubyurl | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment