Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Latest commit

 

History

History
31 lines (22 loc) · 859 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 859 Bytes

simple-fax-soap-client

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.

Usage

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}`)

License

MIT License © 2024 rosahaj