Unofficial client for the simple-fax.de SOAP API
Note: The simple-fax.de SOAP API does not produce transmission reports and transmissions do not appear in the "Versandbox" tab.
import { readFileSync } from 'node:fs'
import * as simpleFax from 'simple-fax-soap-client'
const base64EncodedPDF = fs.ReadFileSync('./document.pdf').toString('base64')
const options = {
username: '[email protected]',
password: 'verysecurepassword',
faxnumber: '080012345678',
data: base64EncodedPDF,
filetype: 'PDF',
identifier: 'sender information',
statusurl: 'https://callbackurl.com/',
}
const faxId = await simpleFax.sendFax(options)
console.log(`Fax ID: ${faxId}`)