thallium205 / xero

Xero Library for Private Applications in Node
48 stars 55 forks source link

Downloading pdf invoice #16

Open tomaskulich opened 8 years ago

tomaskulich commented 8 years ago

According to:

http://developer.xero.com/documentation/getting-started/http-requests-and-responses/#get-individual

to download pdf invoice you have to:

set 'Accept: application/pdf' header don't treat the response as xml :)

I have to do this anyways, so if you're interested, I can make a pull-request out of it.

oroce commented 8 years ago

@tomaskulich we are using the solution which is shown in #2