Last active
January 20, 2016 21:17
-
-
Save bingeboy/711cda5fb145ff7ee131 to your computer and use it in GitHub Desktop.
write a payload from flux to temp folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////////////////////////// | |
// TEST CODE FOR PAYLOAD DATA CREATION | |
///////////////////////////////////////////////////////////////////////////////////// | |
var fs = require('fs'); | |
var fileName = '/tmp/results.json'; | |
fs.writeFile( fileName, JSON.stringify(res.body, null, 4), function (error) { | |
if (error) { | |
console.log(error); | |
} else { | |
console.log('JSON saved to temp dir: ', fileName); | |
} | |
}); | |
////////////////////////////////////////////////////////////////////////////////////// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For payload from stores replace
res.body
withpayload
ordata
or whatever its called.