I can check for agent availability OK (specifying a skill or not), but when I try and request a chat I get the following response:
HTTP Error 400: Bad Request
This is what I am sending (replaced sensitive info):
send: 'POST /api/account/{account_id}/chat/request?v=1 HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-Length: 69\r\nHost: server.lon.liveperson.net\r\nUser-Agent: Python-urllib/2.6\r\nConnection: close\r\nContent-Type: application/xml\r\nAuthorization: LivePerson appKey={api_key}\r\n\r\n'
send: '<request><skill><![CDATA[{skill}]]></skill></request>'
and here’s the response:
reply: 'HTTP/1.1 400 Bad Request\r\n'
header: Connection: close
header: Date: Thu, 28 Jul 2011 08:11:21 GMT
header: Server: Microsoft-IIS/6.0
header: P3P: CP="NON BUS INT NAV COM ADM CON CUR IVA IVD OTP PSA PSD TEL SAM", policyref="http://server.iad.liveperson.net/w3c/p3p.xml"
header: X-Powered-By: ASP.NET
header: Content-Type: application/xml
header: Content-Length: 228
This same request was working (and still is working) fine against a "clone" account that was setup for testing, but is not working against the production account.