The ticket export URL can export one ticket each time. If you need to export a large list of tickets, some automation tools can be used.
The ticket export URL creates a session that saves a cookie. This cookie is reused when the ticket is fetched. Any automation tool used in the ticket retrieval will need to make sure to handle the cookie in order for it to work. In addition, the tool will need to support an SSL connection.
cURL is a command line tool that is compiled for many operating systems. Make sure that cURL that you use is compiled with SSL support.To open a session and save a cookie use:
curl "https://<Liveperson Domain>/hc/web/mlogin/utils/TicketExport.jsp" -d "site=<site ID>&user=<Username>&pass=<Password>" --get --insecure --cookie-jar b.txt
Then use the following URL to fetch tickets:
curl -L -O --cookie b.txt "https://<Liveperson Domain>/hc/web/mlogin/utils/TicketExport.jsp?site=<site ID>&tid=<Ticket ID>&user=<Username>&pass=<Password>" –insecure
The session should be valid for 24 hours.
Using Firefox and iMacros addon
iMacros is an addon for Firefox that allows automation of many browser activities. The attached macro (Ticket Export.iim) uses a CSV file that contains the ticket IDs to be fetched. The CSV file should be placed in the DataSources folder that is defined in iMacros’ Options.Edit the macro to reflect the correct Liveperson domain, username and password.Edit the CSV file and enter the Ticket IDs.
To run it, switch to the iMacros “Play” tab, put the number of tickets that is in the list, in the “Max” field and press “Play (Loop)”.
The tickets will be saved to the default download directory in the form of <Ticket ID>.xml
Modified on: Sun, 22 Oct, 2017 at 5:11 AM
Did you find it helpful?Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.