def self.post_address(customer, options={})
@response = post("http://api.neco.com/v1/checkout/customers/#{customer}/addresses.xml", options)
@response
end
>> Neco.post_address(1, :query => {:address => {:street_address => '485 7th ave apt 1', :locality => 'Brooklyn', :region => 'New York', :postal_code => '11215', :country_code => 'US', :address_type_id => 3, :name => 'Robert Malko'}})
=> {"html"=>{"head"=>{"title"=>"We're sorry, but something went wrong (500)", "meta"=>{"content"=>"text/html; charset=UTF-8", "http_equiv"=>"content-type"}, "style"=>"\n\t\tbody { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }\n\t\tdiv.dialog {\n\t\t\twidth: 25em;\n\t\t\tpadding: 0 4em;\n\t\t\tmargin: 4em auto 0 auto;\n\t\t\tborder: 1px solid #ccc;\n\t\t\tborder-right-color: #999;\n\t\t\tborder-bottom-color: #999;\n\t\t}\n\t\th1 { font-size: 100%; color: #f00; line-height: 1.5em; }\n\t"}, "body"=>{"div"=>{"class"=>"dialog", "p"=>"We've been notified about this issue and we'll take a look at it shortly.", "h1"=>"We're sorry, but something went wrong."}}, "xml:lang"=>"en", "lang"=>"en", "xmlns"=>"http://www.w3.org/1999/xhtml"}}