|
This post originated from an RSS feed registered with Ruby Buzz
by Robby Russell.
|
Original Post: The new RubyURL API
Feed Title: Robby on Rails
Feed URL: http://feeds.feedburner.com/RobbyOnRails
Feed Description: Ruby on Rails development, consulting, and hosting from the trenches...
|
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Robby Russell
Latest Posts From Robby on Rails
|
|
We’ve just deployed the initial version of an API for RubyURL. It makes it really easy to create RubyURLs and is now open to the public. Should it end up being abused, we’ll consider introducing an API KEY for authenticating and tracking abuse.
In the meantime, you can now start to use the RubyURL API.
For example, the following…
$ curl -i \
-X POST \
-H 'Content-Type: application/xml' \
-d '<link><website_url>http://github.com/robbyrussell</website_url></link>' \
http://rubyurl.com/api/links
...would return the following response.
I’ll be updating the ShortURL gem in the coming days (unless someone else wants to patch it first wink) to take advantage of new API, versus how it’s currently creating RubyURLs.
You can see the code & changes for this new API on the RubyURL github site.
Read: The new RubyURL API