10-27-2017 07:24 AM - edited 03-17-2019 07:10 PM
Hello,
I'm new to API programming and would like to use Postman to connect to the Conductor to list/create conferences.
I cannot even connect with Postman.
From the API Guide I understood that I have to use authenticationUser and authenticationPassword to authenticate. Do these values have to be set in the header or in the body ?
Does the username and password need to be provided in quotes ?
Best Regards
Jerome
Solved! Go to Solution.
11-06-2017 06:58 AM - edited 11-06-2017 07:00 AM
Hi
I finally found a way to communicate with the Conductor. The conference management part uses RPC XML.
here is a basic example to enumerate the active conferences
<?xml version='1.0' encoding='UTF-8'?> <methodCall> <methodName>conference.enumerate</methodName> <params> <param> <value> <struct> <member> <name>authenticationPassword</name> <value><string>api</string></value> </member> <member> <name>authenticationUser</name> <value><string>api</string></value> </member> </struct> </value> </param> </params> </methodCall>
10-27-2017 07:51 AM
Hi there,
From using other Cisco REST APIs you will typically include the following header:
Content-Type : application/json
...and the body should include a json data structure:
{"authenticationUser": "<username>", "authenticationPassword": "<password>"}
Make sure you send the request as a POST, and it should return you a service ticket.
cheers,
Seb.
11-06-2017 01:29 AM
Hello Seb
do you have an example of a complete request with header and body ?
Regards
Jerome
11-06-2017 01:47 AM
Hi Jerome,
I'm not sure there is a way to encapsulate the parameters used in postman, so I've taken screenshots instead :)
Obviously the IP, and path in the URL will need to be changed to suit your environment...
cheers,
Seb.
11-06-2017 06:58 AM - edited 11-06-2017 07:00 AM
Hi
I finally found a way to communicate with the Conductor. The conference management part uses RPC XML.
here is a basic example to enumerate the active conferences
<?xml version='1.0' encoding='UTF-8'?> <methodCall> <methodName>conference.enumerate</methodName> <params> <param> <value> <struct> <member> <name>authenticationPassword</name> <value><string>api</string></value> </member> <member> <name>authenticationUser</name> <value><string>api</string></value> </member> </struct> </value> </param> </params> </methodCall>
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