11-13-2015 07:42 AM - edited 03-18-2019 05:12 AM
Forum,
I am trying to figure out the proper 'enumerateFilter' additional syntax for following conference.enumerate API call. Choices for filter are 'active', 'scheduled' and 'completed'.
/usr/bin/wget --connect-timeout=2 --tries=1 --no-check-certificate --output-document="TEST_<IP Address>_conferenceEnumerate.xmlrpc" --user-agent="Mozilla/4.0" --header="Host: <IP Address>" --header="Content-Type: text/xml" --header="Content-Length: 356" --post-data="<?xml version='1.0' encoding='UTF-8'?><methodCall><methodName>conference.enumerate</methodName><params><param><value><struct><member><name>authenticationPassword</name><value><string>shoregroup</string></value></member><member><name>authenticationUser</name><value><string>casesentry</string></value></member></struct></value></param></params></methodCall>" HTTPS://<IP Address>/RPC2
Please advise...thx.
11-13-2015 09:36 AM
I have testing this...
<?xml version='1.0' encoding='UTF-8'?>
<methodCall>
<methodName>conference.enumerate</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>enumerateFilter</name>
<value><string>completed</string></value>
</member>
<member>
<name>authenticationPassword</name>
<value><string>shoregroup</string></value>
</member>
<member>
<name>authenticationUser</name>
<value><string>casesentry</string></value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>" HTTPS://<IP Addr>/RPC2
does not seem to be working...
11-17-2015 05:34 AM
Try dropping the --header="Content-length" and leave that to wget. I think the length you've set is too long and the MCU is waiting for the rest of the message...
Even better, try using python :)
import xmlrpclib
import time
mcu1 = xmlrpclib.Server('http://ip_address/RPC2')
user = 'admin'
pin = ''
params = {
'authenticationUser' : user,
'authenticationPassword' : pin,
}
params_conf_enum = {
'authenticationUser' : user,
'authenticationPassword' : pin,
'enumerateFilter': 'completed'
}
print 'Enumerate Conferences'
data = mcu1.conference.enumerate(params_conf_enum)
print data
for conference in data['conferences']:
print conference['conferenceName']
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