How to save a PDF file received via API?

Take a read.