Skip to content

Instantly share code, notes, and snippets.

@punund
Created December 31, 2012 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save punund/4418816 to your computer and use it in GitHub Desktop.
Save punund/4418816 to your computer and use it in GitHub Desktop.
indexB: ->
x = fs.readFileSync xmlInput
parser.parseString x, (error_xml, res_xml) ->
for product in res_xml?.products?.product[0..0]
r = request
uri: S.Found.uri + '/stock/one'
method: 'POST'
json: product
r.pipe process.stdout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment