Jema is an addon to the Xema Platform. The goal of this project is to speed up your CRM integration with Xema Platform.
Using jsDelivr CDN:
<script src="https://cdn.jsdelivr.net/npm/jema/dist/jema.min.js"></script>Using npm:
$ npm install jemaOn most API calls, the library returns an Observable. This allows the client to receive continous messages from the Xema Platform about Incoming Calls, Messages etc.
<script>
var url = 'http://192.168.29.60';
const tester = new Jema.NetworkTester();
tester.ping(url).subscribe(
(resp) => {
console.log(resp.response); // Pong
},
(err) => {
console.log(err);
}
);
</script>import { NetworkTester } from 'jema';
const url = 'http://192.168.29.60';
const tester = new NetworkTester();
tester.ping(url).subscribe(
(resp) => {
console.log(resp.response); // Pong
},
(err) => {
console.log(err);
}
);