cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3216
Views
1
Helpful
5
Replies

Sent Http request using UCCX and receive a JSON response

fabien_damien
Level 1
Level 1

Hello Everyone,

I need help sending an http request to an api and receive a JSON response using UCCX.

Example of such a request is the following: http://[host:port]/ [language]/restaurants/categories?c=[cuisine]

all the documents and guides i've seen online are related to sending an http request to UCCX using a trigger.

Is there a way to accomplish that integration using UCCX editor nodes and not Java classes?

 

Thanks in advance.


Best regards.

1 Accepted Solution

Accepted Solutions

fabien_damien
Level 1
Level 1

I found the answer to this question: this is possible using the "Make rest call" step.

View solution in original post

5 Replies 5

fabien_damien
Level 1
Level 1

I found the answer to this question: this is possible using the "Make rest call" step.

Anthony Holloway
Cisco Employee
Cisco Employee

Technically, you can simply do this:

 

HTTP GET

Set http_response = URL[http://servername/path/name?key=value]

 

HTTP POST

Set http_response = URL[http://servername/path/name, "your body text here"]

Source: Cisco Unified Contact Center Express Expression Language Reference Guide, Release 10.0(1)

 

The Make REST Call simply aids you in creating your HTTP requests, and offers a few more options.  E.g., HTTP Basic Auth, PUT and DELETE

 

Further, until you upgrade to UCCX 11.6, you wont be able to easily/natively support JSON reposnse data.  XML would be your best friend in pre-11.6 versions.  However, 11.6 brings with it JSON parsing steps.

 

Screenshot

3327c7da-cda6-408f-b195-93ef0f5dd1ab.png

Hello Anthony,

 

Thank you for your reply, i was thinking about using the  "Make rest call"step and parsing the response by looking for expected answers. Especially that i know what to expect for a response from the rest API.

Let me know what you think. I think that would be a temporary solution until the platform is upgraded to 11.6.

 

Cheers.

Yeah, just like a String.contains() type of deal? That's fine for a temporary solution.

yes exactly...