"Hello World" DeviceProfileQuery

The DeviceProfileQuery API returns a list of device profile names associated to a user.

When creating the request body, it is recommended to first build in XML format and then encode the XML before sending to the CUCM server. The first part of the example shows the XML unencoded and the second part of the example shows the XML encoded.

Request


POST /emservice/EMServiceServlet
Content-Type: application/x-www-form-urlencoded

Unencoded

?
1
2
3
4
5
6
7
8
9
<query>
<appinfo>
<appid>appid</appid>
<appcertificate>apppasswd</appcertificate>
</appinfo>
<userdeviceprofilequery>
<userid>john</userid>
</userdeviceprofilequery>
</query>

Encoded

?
1
2
3
4
5
6
7
8
9
xml=%3Crequest%3E
%3CappInfo%3E
%3CappID%3Eappid%3C/appID%3E
%3CappCertificate%3Eapppasswd%3C/appCertificate%3E
%3C/appInfo%3E
%3CuserDeviceProfileQuery%3E
%3CuserID%3Ejohn%3C/userID%3E
%3C/userDeviceProfileQuery%3E
%3C/query%3E

Success Response

1
2
3
4
5
6
7
8
<results>
<deviceprofileresults>
<user id="john">
<devicename>UDP1</devicename>
<devicename>UDP2</devicename>
</user>
</deviceprofileresults>
</results>

Visit the Extension Mobility API Developer Forums to ask questions and interact with other developers.