When sending the following HTTP requests, a chat is successfully set up with the LivePerson chat client, but the skill is displayed as "-". What should be set in the HTTP request so the skill (in the trace below "Support") is shown in the client? It looks like it follows the specification quoted below. Also, the visitor name is displayed correctly.
-- 1212, http: Spooling outgoing HTTP request to 208.89.13.68:443
POST /api/account/P111111/chat/request?v=1 HTTP/1.1
Authorization: LivePerson appKey=1bee7b94d8ac417ca148801111111111
Host: 208.89.13.68:443
Content-Length: 43
Content-Type: application/xml
Accept: application/xml
<request>
<skill>Support</skill>
</request>
--> 2040, http: HTTP confirmation from 208.89.13.68:443
HTTP/1.1 201 Created
Date: Fri, 26 Jul 2013 11:23:10 GMT
Content-Length: 0
P3P: CP="NON BUS INT NAV COM ADM CON CUR IVA IVD OTP PSA PSD TEL SAM"
Location: https://208.89.13.68/api/account/P111111/chat/H5675621851435801491-6779585671597768811K8390216
Content-Type: application/xml
X-Powered-By: ASP.NET
Server: Microsoft-IIS/6.0
-- 2069, http: Spooling outgoing HTTP request to 208.89.13.68:443
POST /api/account/P1111111/chat/H5675621851435801491-6779585671597768811K8390216/info/visitorName?v=1 HTTP/1.1
X-HTTP-Method-Override: PUT
Authorization: LivePerson appKey=1bee7b94d8ac417ca148801111111111
Host: 208.89.13.68:443
Content-Length: 38
Content-Type: application/xml
Accept: application/xml
<visitorName>46702000025</visitorName>
<-- 2072, http: HTTP request
POST /api/account/P1111111/chat/H5675621851435801491-6779585671597768811K8390216/info/visitorName?v=1 HTTP/1.1
X-HTTP-Method-Override: PUT
Authorization: LivePerson appKey=1bee7b94d8ac417ca148801111111111
Host: 208.89.13.68:443
Content-Length: 38
Content-Type: application/xml
Accept: application/xml
<visitorName>46702000025</visitorName>
From the document "Getting Started: Building a RESTful Chat"
To initiate a request from a visitor to chat for a particular skill:
1. Issue a POST request to the chat-request link. Example URI:
https://dev.liveperson.net/api/account/12345678/chat/request?v=1
Include the following headers:
Header Value
Accept application/xml
Authorization LivePerson appKey=25dfd026beff1bf9913f6148f63a7f81
Content-Type application/xml
Add the following Body XML ("application/xml", with a character set of "UTF-8"):
<request>
<skill>Support</skill>
</request>
This URI initiates a chat request for the "Support" skill and a chat session is created in the server. The chat request is displayed in the Agent Console. The agent needs to click the Take button to accept the chat request and enter a message. An example chat request is displayed below.