Created
January 24, 2018 01:05
-
-
Save ChrisGrigg/8a15c30c5d8a3b203e25454abf360537 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
xeroClient.core.invoices.getInvoice(req.body.invoiceID, null, null, null, null, "application/pdf") | |
.then((data) => { | |
console.log(`data ${JSON.stringify(data)}`); | |
fs.writeFile(data.FileName, data.PdfContentRaw, 'binary', function(){ | |
// Do something with the file | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment