cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2824
Views
0
Helpful
4
Replies

Conductor API with Postman

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

1 Accepted Solution

Accepted Solutions

Hi

 

I finally found a way to communicate with the Conductor. The conference management part uses RPC XML.

 

Capture.PNG

 

 

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>

 

View solution in original post

4 Replies 4

Seb Rupik
VIP Alumni
VIP Alumni

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.

Hello Seb

 

do you have an example of a complete request with header and body ?

 

Regards

Jerome

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...

 

apic-rest01.pngapic-rest02.png

 

cheers,

Seb.

Hi

 

I finally found a way to communicate with the Conductor. The conference management part uses RPC XML.

 

Capture.PNG

 

 

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>