Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: eugene on November 12, 2018, 04:06:45 PM
-
Is anyone aware of any capability to start/stop Genesys applications via REST services?
Thanks,
eugene
-
I know GAX has a RESTFul API for that, but it lacks documentation.
-
Thanks for that - let me post to the developer site and log tech support ticket to see if they have any info on that.
-
So GAX POSTS to http://gax-host:gax-port/gax/api/scs/applications/start and http://gax-host:gax-port/gax/api/scs/applications/stop with the following JSON content:
{"controlobjectid":"123"}
How you find out which object has 123 as its ID is another question...
-
[quote author=jerry_jeremiah link=topic=11178.msg50957#msg50957 date=1542832101]
So GAX POSTS to http://gax-host:gax-port/gax/api/scs/applications/start and http://gax-host:gax-port/gax/api/scs/applications/stop with the following JSON content:
{"controlobjectid":"123"}
How you find out which object has 123 as its ID is another question...
[/quote]
If I remember well, you can [b]GET[/b] http://gax-host:gax-port/gax/api/scs/applications (or something like this)
-
That returns a list of controlobjectids and their state but not their names.
And http://gax-host:gax-port/gax/api/scs/applications/123 gives back the state just for the controlobjectid requested (but still no name)
-
[quote author=jerry_jeremiah link=topic=11178.msg50957#msg50957 date=1542832101]
So GAX POSTS to http://gax-host:gax-port/gax/api/scs/applications/start and http://gax-host:gax-port/gax/api/scs/applications/stop with the following JSON content:
{"controlobjectid":"123"}
How you find out which object has 123 as its ID is another question...
[/quote]
great solution - i haven't tried this yet but looks promising.
-
just tried it now this works, but prerequisite is that you login and establish session with GAX before issue the subsequent start/stop API.
Jerry the controlobjectdbid here is just the application's DBID in CME.