Connecting To The Engagement History API With Node.js

Connecting To The Engagement History API With Node.js Example

 

The Engagement History API is a REST API that allows a Brand to search, filter, and keep a copy chat transcripts. In order to use the Engagement History API, you will need to have a set of API keys installed on your account. Once you have these keys installed on your account, you will be able to start using the API. To get started, all you need to do is send a POST request with an OAuth 1.0 Authorization header.

 

If you are not familar with OAuth 1.0, you can read more about it here: http://oauth.net/core/1.0/

 

For this example, we will be using the Request, a Node.js module, to make our http calls and to create our OAuth Authorization header. You can read more about it here: https://www.npmjs.com/package/request

 

Example Code:

 

EngagementHistoryAPI.js

 

This post, based on feedback from LiveEngage users, is meant to offer you guidance and to help drive value for your brand.

 

More Resources

 

You can find more information on the Engagement History API here: Engagement History API Documentation

Best Practices - Engagement History API: Best Practices - Engagement History API

You can download the example code here: Sample Node.js Code