You need to create an application on APIdaze at VoIP Innovations: https://voipinnovations.com/programmable. The API key
that matches with your application
will be used in the various examples.
You may install this library either as an NPM module or by downloading the JavaScript file.
npm install apidaze-js
Then in your .js script
const APIdaze = require('apidaze-js')
Just add a <script/>
tag to your HTML page like so :
<script src="https://api4.apidaze.io/javascript/releases/APIdaze-3.0.0-dev-master.js" />
Instantiate a client in your JavaScript code :
const client = new APIdaze.CLIENT({apiKey: "YOUR_API_KEY", wsurl: "fs-us-ny-1.apidaze.io:8082"})
This will connect you to the server named fs-us-ny-1.apidaze.io
, and check your apiKey
there. Once client
has been properly instanciated, you'll be allowed to make calls, conferencing and send text messages and SMS according to the instructions available in your External Script
.
Just clone the repository, install and start to test various examples locally
git clone https://github.com/apidaze/apidaze-js.git
cd apidaze-js
npm install
npm start
Open your browser at https://localhost:9000/
. Warning about invalid certificate will be displayed. On Chrome, please click advanced > "Proceed to localhost (unsafe)".
This is needed because browsers in order to use microphone and camera require site to use https
, however server started with npm start
has no certificate.
API can be downloaded at https://api4.apidaze.io/javascript/releases/APIdaze-3.0.0-dev-master.js