$response = $util->RESTCall($CFG->wblistadm_url.'/ticket', $data, $cookiesIn = '');
if ($response['http_code'] >= 200 && $response['http_code'] <= 204) {
$ticket = json_decode($response['content']);
+ $token = $ticket->data->CSRFPreventionToken;
$cookies = $response['cookies'];
}
<pre>
<?php
print_r($response);
-print "Ticket: \n".var_export($ticket,true)."Cookies: $cookies";
+print "Ticket: \n".var_export($ticket,true)."\nCookies: $cookies\nToken: $token";
?>
</pre>
</body>