Introduce to Daktela JS integrations
Daktela allows integration with browser-based applications where you can manage user state from simple action such as login or logout user to manage calls, send sms or create tickets. For integration we use API that supports JSONP or we can enable JSON for Cross-Origin Resource Sharing. For API authorization we use accessToken key which is unique for any user and can be send as value in request, in cookie or header in name X-Auth-Token. You can call these actions manually or you can use our CLI libary which is now in beta.
How to log in user to queue
The queues are for manage individual channels such as calls, webchats, smses, etc. If user want get inbound or make outbound calls, sms must be logged in queue. More about this requests in API
How to make a call for user
For make a call you must have rights to create call and be logged in to outbound call queue or have rights on user with this rights if you want make a call to another user. More about this requests in API
How to get current user state
If you need in your application show user current daktela state, means it user has call, is on pause or in which queues is logged use api request on appPullData. Request can be simple one time called or used as HTTP Long Polling request.. More about this request in API