lmatteis/node-trello — pull request #10 by bovine (2012-02-11 07:57:34+00:00)
Title: Add support for POST and PUT operations

I've added support for POST and PUT operations so that you can modify or create new objects on Trello. I've tested it with creating a new Card in one of my Boards.

My commits also includes a change to use the built-in querystring.stringify() method that is shipped with Node.JS, in order to prevent problems with unsafe characters not being properly escaped. This becomes more of a problem when you start using the POST/PUT operations with descriptions and names that can have any manner of characters in them. http://nodejs.org/docs/v0.3.1/api/querystring.html

I also noticed that you didn't seem to be using the this.host variable that was already defined, so I cleaned it up to use that instead of repeating the hostname in the code again.