Connecting To The Engagement History API With Java

Connecting To The Engagement History API With Java 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 ScribeJava, a Java Oauth library, to create our OAuth Authorization header. You can read more about it here: https://github.com/scribejava/scribejava

 

Example Code:

 

EHAPI.java

 

EngagementHistory.Java

 

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 Java Code