Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 934 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 934 Bytes

Fuze Developer Center Code Samples

These samples are written in node.js

Dependencies

You need to have node.js installed on your system. On a Mac you can use brew to install it, on Windows go to https://nodejs.org/en/download/ and download the installer.

There are external dependencies that need to be installed:

  • httplease
  • node-stringbuilder
  • sprintf-js
  • fs
  • readline-sync
  • p-map
  • readline-sync
  • express (1)
  • body-parser-bigint (1)

Notes: (1): needed for presence/09-presence-events-listener.js only

Install them running npm install httplease node-stringbuilder sprintf-js fs readline-sync p-map readline-sync express body-parser-bigint

Configuration

A file named config.js exists at the base directory of the code samples. You should edit this file to add your api key / authentication token.

How to run

From the base directory run each sample file with: node directory/sample-filename.js