ICWS stands for Interaction Center Web Services, a REST API for Genesys's PureConnect. Post questions regarding using the API or the SDK.
Questions tagged [icws]
10 questions
4
votes
1 answer
Server-Sent Events Polling causing long delays
I have a connector that will call a RESP API using cURL and PHP.
I need to call one method every second to check for new messages and then process them. I used the following 2 approaches to handle the messages
AJAX Polling using SetInterval(): call…

Jaylen
- 39,043
- 40
- 128
- 221
3
votes
2 answers
How to parse the header returned by cURL?
I am trying to communicate to an API using cURL. One of the methods require that I pass the value of the ININ-ICWS-CSRF-Token header (ie. WAhtYWxoYXlla1dBY2NvUkRJWCQxZmUxZWFhZS0xZTE0LTQyNGYtYjdhZS0zNmZjN2MxYWJmODBYCjEwLjAuNC4xNjA=) and the…

Jaylen
- 39,043
- 40
- 128
- 221
2
votes
2 answers
How to override the Exception Class and not to display the Fatal error
I am trying to write a class that communicate with an API. I would like to override the standard Exception class in PHP to return the message, error code that I want.
I have added this extension

Jaylen
- 39,043
- 40
- 128
- 221
1
vote
0 answers
What is causing a very slow ajax response?
I wrote some PHP code to help me connect to a REST API for a telephone system (ie. ICWS.php.)
Then to make my life easier, I wrote a small script (ie. interations.php) that accepts two parameters: a method and an ID. This script will basically call…

Jaylen
- 39,043
- 40
- 128
- 221
0
votes
1 answer
Python 2.7 Requests GET with header
I'm trying to send a header with a requests.get:
import requests
url = 'http://qp-nachorat2000:8018/icws/' + sessionID + '/status/user-statuses/Administrator'
header = {'ININ-ICWS-CSRF-Token': csrfToken}
pcRequest = requests.get(url,…

R S Gill
- 9
- 2
0
votes
0 answers
How to log the cURL calls into a file without using Wireshark to capture packets?
I am using PHP and cURL to send in HTTP request to a REST API. However, I need to validate some data going in/out.
How can I get a copy of the entire request logged into a file?
I have added this line to my request
curl_setopt($ch, CURLOPT_VERBOSE,…

Junior
- 11,602
- 27
- 106
- 212
0
votes
2 answers
addEventListener is not being called if an exception is thrown
I am trying to implement Server-sent-events communication between my client and my server.
I have implemented it and it works perfectly except when the server return exceptions.
I am not sure why the exception message is not being returned to the…

Jaylen
- 39,043
- 40
- 128
- 221
0
votes
1 answer
How to decode json string into half array/ half object?
I have the following json string
$str =…

Junior
- 11,602
- 27
- 106
- 212
0
votes
2 answers
How to allow cURL to automatically add recived cookies to the request?
I am trying to communicate with a RESP API using cURL calls via PHP.
The first call to the API is to login by passing a username and a password. Once the API receive my request, it returns something like this in the headers
HTTP/1.1 201…

Jaylen
- 39,043
- 40
- 128
- 221
0
votes
1 answer
How to capture a plain copy of my HTTP request
I am trying to communicate with anREST API using cURL and PHP. But, I am getting an issue from the API and I need to be able to see my HTTP request in plain text where I can analyses it and correct it.
I tried the following to write my request to a…

Jaylen
- 39,043
- 40
- 128
- 221