Chris Bomba | That worked. I am using Perl to query the API then parse the XML to get the LocationURI. I then add the "/connectionlocations" and query again. This time I parse the XML for SmtpDomain and HostAddress fields. I have one problem though. When I do a query for the users by lastname and I get multiple users I don't know how to parse that. Here is what is returned. I need to be able to grab the FirstName, LastName, DtmfAccessId, and LocationURI. That way I can then search for each of those LocationURIs and get the SmtpDomain for each. I can then send that information back to the webpage for the user to confirm (User1 BasicUser @ 8918881266) $VAR1 = { 'GlobalUser' => [ { 'FirstName' => 'User1', 'LocationObjectId' => '6f3b0448-2a3e-4379-ba2d-dc67d467461e', 'LastName' => 'BasicUser', 'DisplayName' => 'User1 BasicUser', 'ListInDirectory' => 'true', 'PartitionObjectId' => '6e7f4992-322d-4f71-84ca-98722f02a4ff', 'VoiceFileURI' => '/vmrest/voicefiles/e5dc2a35-0967-4dd3-ad3e-a4d9fe6a6898.wav', 'DtmfAccessId' => '8918881266', 'LocationURI' => '/vmrest/locations/6f3b0448-2a3e-4379-ba2d-dc67d467461e', 'URI' => '/vmrest/globalusers/19430e88-266b-4310-8d3d-c57027d8f9da', 'DtmfNameFirstLast' => '2474786743726622', 'ObjectId' => '19430e88-266b-4310-8d3d-c57027d8f9da', 'Alias' => 'U1BasicUser', 'VoiceName' => 'e5dc2a35-0967-4dd3-ad3e-a4d9fe6a6898.wav', 'PartitionURI' => '/vmrest/partitions/6e7f4992-322d-4f71-84ca-98722f02a4ff', 'DtmfNameLastFirst' => '2662224747867437', 'XferString' => {}, 'IsTemplate' => 'false' }, { 'FirstName' => 'User2', 'LocationObjectId' => '6f3b0448-2a3e-4379-ba2d-dc67d467461e', 'City' => 'Berkeley', 'LastName' => 'BasicUser', 'DisplayName' => 'User2 BasicUser', 'ListInDirectory' => 'true', 'PartitionObjectId' => '6e7f4992-322d-4f71-84ca-98722f02a4ff', 'VoiceFileURI' => '/vmrest/voicefiles/e0a93e4f-bf54-4b28-b177-2f43ca483b8b.wav', 'DtmfAccessId' => '8918888410', 'LocationURI' => '/vmrest/locations/6f3b0448-2a3e-4379-ba2d-dc67d467461e', 'URI' => '/vmrest/globalusers/d71ba767-10ef-4489-889f-89a66fc19242', 'DtmfNameFirstLast' => '2474786743726622', 'ObjectId' => 'd71ba767-10ef-4489-889f-89a66fc19242', 'Alias' => 'BRK8410', 'VoiceName' => 'e0a93e4f-bf54-4b28-b177-2f43ca483b8b.wav', 'PartitionURI' => '/vmrest/partitions/6e7f4992-322d-4f71-84ca-98722f02a4ff', 'DtmfNameLastFirst' => '2662224747867437', 'XferString' => {}, 'IsTemplate' => 'false' }, { 'FirstName' => 'User3', 'LocationObjectId' => '6f3b0448-2a3e-4379-ba2d-dc67d467461e', 'LastName' => 'BasicUser', 'DisplayName' => 'User3 BasicUser', 'ListInDirectory' => 'true', 'PartitionObjectId' => '6e7f4992-322d-4f71-84ca-98722f02a4ff', 'DtmfAccessId' => '8918885499', 'LocationURI' => '/vmrest/locations/6f3b0448-2a3e-4379-ba2d-dc67d467461e', 'URI' => '/vmrest/globalusers/af1eb688-c883-423b-8fc7-c664c572058f', 'DtmfNameFirstLast' => '2474786743726622', 'ObjectId' => 'af1eb688-c883-423b-8fc7-c664c572058f', 'Alias' => 'PTB5499', 'DtmfNameLastFirst' => '2662224747867437', 'XferString' => {}, 'PartitionURI' => '/vmrest/partitions/6e7f4992-322d-4f71-84ca-98722f02a4ff', 'IsTemplate' => 'false' } ] }; |