ApiService provide functions for GET, POST, PUT and DELETE query
Usage:
const apiService = new ApiService('kalvad-poc'); // contact center name you want to connect to
apiService.get(apiService.endpoints.authenticate) ; // ApiService already defined the endpoints available on Ziwo API
.then( (e) => console.log('User > ', e.data)); // Request object is available under data;
ApiService provide functions for GET, POST, PUT and DELETE query
Usage:
const apiService = new ApiService('kalvad-poc'); // contact center name you want to connect to apiService.get(apiService.endpoints.authenticate) ; // ApiService already defined the endpoints available on Ziwo API
.then( (e) => console.log('User > ', e.data)); // Request object is available under
data
;