This post originated from an RSS feed registered with Ruby Buzz
by Red Handed.
Original Post: Backpack Accepts YAML Payload
Feed Title: RedHanded
Feed URL: http://redhanded.hobix.com/index.xml
Feed Description: sneaking Ruby through the system
The Backpack Weblog just posted a complete Backpack API for Ruby [mirror] which is terrifically straightforward. The meat of the code is the first twenty lines, which handles serialization to YAML, posting to the server and deserialization from XML. Ha! YAML ANDXML! (Who signed the peace accord without me?!)
I’m curious about this X-POST_DATA_FORMAT header that’s being sent. What about Content-Type: application/yaml? It’s also interesting that YAML isn’t readily documented as a payload on the API page. I hope I can rectify this situation once my Python and Perl assistants pass their dumping Syck extensions back up to me.
All actions are done through POST, presumably to allow authentication for each. I’d really like to hear from David or Jamis why they didn’t use authentication headers. And, you know, how this all came together.
Note: You’ll probably want to use my corrected mirrored version above. The pasted script forms urls like username.honey.i, which is an awesome domain, but too awesome methinks.