You need to create an application on APIdaze at https://developers.apidaze.io. 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-2.0.0-dev-master.js" />
Instantiate a client in your JavaScript code :
const client = new APIdaze.CLIENT({apiKey: "YOUR_API_KEY", wsurl: "ws2-dev-fr-par-1.apidaze.io"})
This will connect you to the server named ws2-dev-fr-par-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 http://localhost:9000/
API can be downloaded at https://api4.apidaze.io/javascript/releases/APIdaze-2.0.0-dev-master.js