" /> Attach Data via URS HTTP interface - Genesys CTI User Forum

Author Topic: Attach Data via URS HTTP interface  (Read 1927 times)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Attach Data via URS HTTP interface
« on: September 06, 2017, 12:42:40 PM »
Advertisement
Hi guys,
Quick question...can we attach data via URS HTTP interface? Rest API?
If so, how?

I know, will check URS docs later but don't have access right now and need a fast light

Enviado de meu E6633 usando Tapatalk


Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Attach Data via URS HTTP interface
« Reply #1 on: September 06, 2017, 01:58:44 PM »
Try this:
http://IP:PORT/urs/call/connid/update?sync=1&key1=value1&key2=value2...

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Attach Data via URS HTTP interface
« Reply #2 on: September 06, 2017, 02:42:32 PM »
Nice!! Thanks Kubig! [emoji16] fast answer and solution at customer meeting

Enviado de meu E6633 usando Tapatalk


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Attach Data via URS HTTP interface
« Reply #3 on: September 06, 2017, 04:43:19 PM »
:'(  Will not work as in our scenario the call doesn't go through URS, is a manual Outbound call...When tested this, URS didn't know about the ConnID created on TServer only...
Any suggestion?

Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: Attach Data via URS HTTP interface
« Reply #4 on: September 06, 2017, 05:59:48 PM »
If URS doesn't see the interaction then you can try method trek - sending "raw" trequest - (analog of strategy function SendRequest).
Method need to specify tserver (or switch), event=name of request to send as seen in logs), Attributes names also as is (but with cut off "Attribute" prefix). 

Something like
http://host:port/urs/trek/exec?tserver=MyTServer&ThisDN=2202&event=RequestUpdateUserData&ConnID=033902a8fb644019&UserData.abc=StringData&UserData.{d}xxx=557

Just one thing - by default method trek (sending arbitrary trequest through web) is disabled. You will need set URS methods in section http to all (by default it is all-trek), http/methods=all

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Attach Data via URS HTTP interface
« Reply #5 on: September 06, 2017, 06:32:15 PM »
I could kiss you right now, you know?? I opened an eSR and told me there was no way...
:-X


Thanks again!