ā08-24-2017 09:53 AM - edited ā03-14-2019 05:33 PM
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.
Solved! Go to Solution.
ā08-24-2017 12:47 PM
I found the answer to this question: this is possible using the "Make rest call" step.
ā08-24-2017 12:47 PM
I found the answer to this question: this is possible using the "Make rest call" step.
ā08-28-2017 09:39 PM
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
ā08-29-2017 06:33 AM - edited ā08-29-2017 06:34 AM
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.
ā08-29-2017 08:54 AM
ā08-29-2017 09:58 AM
yes exactly...
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide