Picture of Wim 4127
Registered 6 years 252 days
Wim 4127 Monday, 29 November 2021, 08:05 AM
Limit the list of returned objects via the XML HTTP API
Hi, sometimes it is necessary to get information of the PBX via the XML HTTP API (at least, we call it that). We use for example an URL such as: https://10.0.x.y/xqting.be/.../PBX0/ADMIN/mod_cmd_login.xml?cmd=show&user=* which returns all objects in XML format. Is it possible to provide a queryparameter herre to return only the objects of a certain pseudo type? E.g. all voicemail objects? Are there other possible filters that can be applied here (other than showing one specific GUID because know that)?

Kind regards,

Wim
Andreas Fink
Moderator Registered 13 years 52 days
Andreas Fink (innovaphone) Monday, 29 November 2021, 12:48 PM
1 of 1 users consider this post helpful
Re: Limit the list of returned objects via the XML HTTP API
Hello Wim,

this API do not provide filter on the type of object.

You could use https://sdk.innovaphone.com/13r2/doc/appwebsocket/PbxAdminApi.htm#GetPseudoObjects to get objects of specific type.


Other possibility is to get all objects and filter locally:
http://wiki.innovaphone.com/index.php?title=Howto:Retrieve_configuration_of_all_PBX_Objects_using_SOAP_API

Best Regards
Andreas Fink

Picture of Wim 4127
Registered 6 years 252 days
Wim 4127 Monday, 29 November 2021, 01:23 PM
Re: Limit the list of returned objects via the XML HTTP API
That is indeed what I already thought, but I was just wandering that maybe there were some options... no problem, we'll use the full list wtih local filtering or the websocket PBX Admin API json version as needen/where needed.
← You can define your color theme preference here