eprokhor / fax-cover-page-nodejs-demo

Home Page:https://ringcentral-tutorials.github.io/fax-cover-page-nodejs-demo/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom Cover Page Demo in Node.js

A custom fax cover page can be added by including the cover page as the first attachment and having the fax API not include its own cover page.

The demo shows how to create a custom cover page using HTML and use it with the fax API.

Components of the demo include:

  1. Creating and rendering a HTML template (using handlebars.js in this demo) for the cover page.
  2. Creating a temporary cover.html for the rendered HTML and adding it as the first file attachment for the fax.
  3. Seeing the fax coverIndex to 0 to represent "None" and not include a RingCentral provided cover page.

Sample files:

  1. Cover Page HTML template
  2. Fax Attachment
  3. Fax Demo Output

Installation

$ git clone https://github.com/ringcentral-tutorials/fax-cover-page-nodejs-demo.git
$ cd fax-cover-page-nodejs-demo
$ npm install

Configuration

cp .env.sample .env
vim .env

Usage

node index.js

About

https://ringcentral-tutorials.github.io/fax-cover-page-nodejs-demo/index.html


Languages

Language:JavaScript 54.5%Language:Handlebars 45.5%