Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| vendors:cisco:uc:ece:webapi [2019/02/18 08:46] – [Output] gerardorourke | vendors:cisco:uc:ece:webapi [2019/03/12 08:58] (current) – gerardorourke | ||
|---|---|---|---|
| Line 63: | Line 63: | ||
| </ | </ | ||
| - | Example when 1 agent avilable | + | Example when 1 agent available |
| Response: | Response: | ||
| Line 125: | Line 125: | ||
| header(" | header(" | ||
| - | $url = 'http://ucce-ece-db-12.lab2.purplepi.ie/ | + | $chatentry_id=' |
| - | $file = file_get_contents($url); | + | $ecehostname=' |
| - | echo $file; | + | $url = ' |
| - | $xml_data = str_replace(" | + | $ch = curl_init($url); |
| + | |||
| + | curl_setopt($ch, | ||
| + | curl_setopt($ch, | ||
| + | curl_setopt($ch, | ||
| + | curl_setopt($ch, | ||
| + | |||
| + | $output = curl_exec($ch); | ||
| + | $info = curl_getinfo($ch); | ||
| + | curl_close($ch); | ||
| + | |||
| + | echo $output; | ||
| + | |||
| + | $xml_data = str_replace(" | ||
| echo $xml_data; | echo $xml_data; | ||