1.1.2 • Published 5 years ago
buzzeasy-agentassist v1.1.2
#Buzzeasy Agent Assistance API Wrapper
There are two methods of calling the Agent Assistance API, using the object, and using the global function
Object
Required Data: .. Agent Assistance Url .. Chat Service Id ..* Auth Token
import{AgentAssistance} from 'buzzeasy-agentassist';
const aaApi = new AgentAssistance({
apiAddress:"<Url>",
chatServiceId:"<ChatServiceId",
authToken:"<AuthToken>"
});
//Returns a promise of Recomendation[]
aaApi.getRecommendations();
Function
.. Full url .. Auth Token
import {getRecommendations} from 'buzzeasy-agentassist';
getRecommendations("<Url>","<AuthToken>")