Demo Backend SDK
Last updated
Last updated
If you want to load acquire full backend on any page or inside your backend then go acquire backend js sdk page (Setup Backend JS SDK) and setup sdk. First you'll need to load acquire script and use below acquire js code to configure SDK and indentify agent and account details so we can load full visitor list and all required parts of acquire.io to let agent handle all chats, visitor list etc.
If you want to create your backend sdk then first login acquire dashboad (app.acquire.io). When you logged into app.acquire.io you can see your all visitor in backend SDK.
After login dashboad you create a HTML page and include sdk script <script src="https://s.acquire.io/bare-backend.js"></script>
and use backend sdk setup code (Setup Backend JS SDK).
Acquire Dashboard in top right corner in click on profile name and you see ACCOUNT_UID use this and Dashboard in open Agent menu you see here agent all details.
if you want to get all agents details use acquire agent REST API (https://developer.acquire.io/rest-apis/agent ). Agent API in you can get agents all details and make a own dashboard.
Setup Agent API :
Acquire agent API setup process steps:
first get acquire API token (https://app.acquire.io/setting/token ) and save in anywhere secure (like : database) after make functionality to get token use secure way.
Use agents list API (https://developer.acquire.io/rest-apis/agent/agents-list) for all data show in a table view.
If you want to create new agent use agents add API (https://developer.acquire.io/rest-apis/agent/agent-add) and make a form to save new agent.
For edit agent details use agent edit API ( https://developer.acquire.io/rest-apis/agent/edit-get-agent ) . Edit API in you can get particular agent details by id and show in input.
After above process you use update API (https://developer.acquire.io/rest-apis/agent/update) for edit agent's details save/ update.
After all setup load HTML page in browser and see all live agents details. You can use this page as a iframe.